1
0
Fork 0
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:
Vivien Nicolas 2011-06-10 01:20:00 +02:00
parent fcc4ce9bec
commit 74abf984d5
3 changed files with 328 additions and 33 deletions

2
pdf.js
View file

@ -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);