Implementation
static List<String> get winAnsiEncoding {
final List<String>? cached = _winAnsiCache;
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 = _winAnsiHigh.split(" ").where((String value) => value.isNotEmpty).toList();
for (int i = 0; i < high.length && 128 + i < 256; i++) {
if (high[i] != ".notdef") table[128 + i] = high[i];
}
_winAnsiCache = table;
return table;
}