macRomanEncoding property

List<String> get macRomanEncoding

Implementation

static List<String> get macRomanEncoding {
  final List<String>? cached = _macRomanCache;
  if (cached != null) return cached;
  final List<String> table = List<String>.filled(256, "");
  final List<String> strings = cffStandardStrings;
  for (int code = 32; code <= 126; code++) {
    final int index = code - 31;
    if (index < strings.length) table[code] = strings[index];
  }
  table[39] = "quotesingle";
  table[96] = "grave";
  final List<String> high = _macRomanHigh.split(" ").where((String value) => value.isNotEmpty).toList();
  for (int i = 0; i < high.length && 128 + i < 256; i++) {
    table[128 + i] = high[i];
  }
  _macRomanCache = table;
  return table;
}