mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-24 17:18:07 +02:00
Make the Type1 to OTF code active, even if the sanitizer prevent fonts to load at the moment
This commit is contained in:
parent
fdacb575c5
commit
828367a1b4
2 changed files with 63 additions and 28 deletions
5
pdf.js
5
pdf.js
|
@ -2276,7 +2276,7 @@ var CanvasGraphics = (function() {
|
|||
if (!font)
|
||||
return;
|
||||
|
||||
var fontName = "Nimbus Roman No9 L";
|
||||
var fontName = "";
|
||||
var subtype = font.get("Subtype").name;
|
||||
switch (subtype) {
|
||||
case "Type1":
|
||||
|
@ -2285,7 +2285,8 @@ var CanvasGraphics = (function() {
|
|||
// XXX fetchIfRef looks expensive
|
||||
var fontDescriptor = this.xref.fetchIfRef(fontDescriptor);
|
||||
var fontFile = this.xref.fetchIfRef(fontDescriptor.get("FontFile"));
|
||||
font = new Type1Font(fontDescriptor.get("FontName").name, fontFile);
|
||||
fontName = fontDescriptor.get("FontName").name;
|
||||
font = new Type1Font(fontName, fontFile);
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue