error("FontFile not found for font: " + fontName);
fontFile = xref.fetchIfRef(fontFile);
- // Fonts with an embedded cmap but without any assignment in
- // it are not yet supported, so ask the fonts loader to ignore
- // them to not pay a stupid one sec latence.
- var ignoreFont = false;
-
var encodingMap = {};
var charset = [];
if (fontDict.has("Encoding")) {
- ignoreFont = false;
-
var encoding = xref.fetchIfRef(fontDict.get("Encoding"));
if (IsDict(encoding)) {
// Build a map between codes and glyphs
break;
case "beginbfrange":
- ignoreFont = false;
case "begincodespacerange":
token = "";
tokens = [];
type: subType.name,
encoding: encodingMap,
charset: charset,
- bbox: bbox,
- ignore: ignoreFont
+ bbox: bbox
};
return {