getCFFString function

dynamic getCFFString(
  1. dynamic strings,
  2. dynamic index
)

Implementation

getCFFString(strings, index) {

  if (index == null) {
    return null;
  }

  if (index <= 390) {
    index = cffStandardStrings[index];
  } else {
    int _len = strings.length;
    int _idx = index - 391;

    if(_idx >= _len) {
      return null;
    }

    index = strings[_idx];
  }

  return index;
}