Remove the ignoreFont variable
This commit is contained in:
parent
ef418de40b
commit
1de5436561
11
pdf.js
11
pdf.js
@ -2359,16 +2359,9 @@ var CanvasGraphics = (function() {
|
|||||||
error("FontFile not found for font: " + fontName);
|
error("FontFile not found for font: " + fontName);
|
||||||
fontFile = xref.fetchIfRef(fontFile);
|
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 encodingMap = {};
|
||||||
var charset = [];
|
var charset = [];
|
||||||
if (fontDict.has("Encoding")) {
|
if (fontDict.has("Encoding")) {
|
||||||
ignoreFont = false;
|
|
||||||
|
|
||||||
var encoding = xref.fetchIfRef(fontDict.get("Encoding"));
|
var encoding = xref.fetchIfRef(fontDict.get("Encoding"));
|
||||||
if (IsDict(encoding)) {
|
if (IsDict(encoding)) {
|
||||||
// Build a map between codes and glyphs
|
// Build a map between codes and glyphs
|
||||||
@ -2433,7 +2426,6 @@ var CanvasGraphics = (function() {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case "beginbfrange":
|
case "beginbfrange":
|
||||||
ignoreFont = false;
|
|
||||||
case "begincodespacerange":
|
case "begincodespacerange":
|
||||||
token = "";
|
token = "";
|
||||||
tokens = [];
|
tokens = [];
|
||||||
@ -2488,8 +2480,7 @@ var CanvasGraphics = (function() {
|
|||||||
type: subType.name,
|
type: subType.name,
|
||||||
encoding: encodingMap,
|
encoding: encodingMap,
|
||||||
charset: charset,
|
charset: charset,
|
||||||
bbox: bbox,
|
bbox: bbox
|
||||||
ignore: ignoreFont
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
Loading…
Reference in New Issue
Block a user