Add support for MMType1 fonts with embedded font files
This commit is contained in:
parent
b97d2351aa
commit
3c759e296a
@ -2546,6 +2546,9 @@ var Font = (function FontClosure() {
|
|||||||
|
|
||||||
var data;
|
var data;
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
case 'MMType1':
|
||||||
|
info('MMType1 font (' + name + '), falling back to Type1.');
|
||||||
|
/* falls through */
|
||||||
case 'Type1':
|
case 'Type1':
|
||||||
case 'CIDFontType0':
|
case 'CIDFontType0':
|
||||||
this.mimetype = 'font/opentype';
|
this.mimetype = 'font/opentype';
|
||||||
|
1
test/pdfs/.gitignore
vendored
1
test/pdfs/.gitignore
vendored
@ -55,6 +55,7 @@
|
|||||||
!helloworld-bad.pdf
|
!helloworld-bad.pdf
|
||||||
!zerowidthline.pdf
|
!zerowidthline.pdf
|
||||||
!bug868745.pdf
|
!bug868745.pdf
|
||||||
|
!mmtype1.pdf
|
||||||
!bug864847.pdf
|
!bug864847.pdf
|
||||||
!issue1002.pdf
|
!issue1002.pdf
|
||||||
!issue925.pdf
|
!issue925.pdf
|
||||||
|
BIN
test/pdfs/mmtype1.pdf
Normal file
BIN
test/pdfs/mmtype1.pdf
Normal file
Binary file not shown.
@ -235,6 +235,13 @@
|
|||||||
"rounds": 1,
|
"rounds": 1,
|
||||||
"type": "eq"
|
"type": "eq"
|
||||||
},
|
},
|
||||||
|
{ "id": "mmtype1",
|
||||||
|
"file": "pdfs/mmtype1.pdf",
|
||||||
|
"md5": "7d632263d28bc2ff05ee0cc426966a5a",
|
||||||
|
"link": false,
|
||||||
|
"rounds": 1,
|
||||||
|
"type": "eq"
|
||||||
|
},
|
||||||
{ "id": "openoffice-pdf",
|
{ "id": "openoffice-pdf",
|
||||||
"file": "pdfs/DiwanProfile.pdf",
|
"file": "pdfs/DiwanProfile.pdf",
|
||||||
"md5": "55d0c6a1a6d26c9ec9dcecaa7a471e0e",
|
"md5": "55d0c6a1a6d26c9ec9dcecaa7a471e0e",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user