mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-28 23:28:16 +02:00
Add the beginning of a Type1 to Type2 charstring converter
This commit is contained in:
parent
fcc4ce9bec
commit
74abf984d5
3 changed files with 328 additions and 33 deletions
2
pdf.js
2
pdf.js
|
@ -2280,9 +2280,9 @@ var CanvasGraphics = (function() {
|
|||
var subtype = font.get("Subtype").name;
|
||||
switch (subtype) {
|
||||
case "Type1":
|
||||
break;
|
||||
var fontDescriptor = font.get("FontDescriptor");
|
||||
if (fontDescriptor.num) {
|
||||
// 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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue