Skip to content

Commit

Permalink
Merge pull request #5308 from Snuffleupagus/fonts-mmtype1
Browse files Browse the repository at this point in the history
Add support for MMType1 fonts with embedded font files
  • Loading branch information
yurydelendik committed Sep 25, 2014
2 parents 76b3e5d + 3c759e2 commit 4189c78
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/fonts.js
Original file line number Diff line number Diff line change
Expand Up @@ -2546,6 +2546,9 @@ var Font = (function FontClosure() {

var data;
switch (type) {
case 'MMType1':
info('MMType1 font (' + name + '), falling back to Type1.');
/* falls through */
case 'Type1':
case 'CIDFontType0':
this.mimetype = 'font/opentype';
Expand Down
1 change: 1 addition & 0 deletions test/pdfs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
!helloworld-bad.pdf
!zerowidthline.pdf
!bug868745.pdf
!mmtype1.pdf
!bug864847.pdf
!issue1002.pdf
!issue925.pdf
Expand Down
Binary file added test/pdfs/mmtype1.pdf
Binary file not shown.
7 changes: 7 additions & 0 deletions test/test_manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,13 @@
"rounds": 1,
"type": "eq"
},
{ "id": "mmtype1",
"file": "pdfs/mmtype1.pdf",
"md5": "7d632263d28bc2ff05ee0cc426966a5a",
"link": false,
"rounds": 1,
"type": "eq"
},
{ "id": "openoffice-pdf",
"file": "pdfs/DiwanProfile.pdf",
"md5": "55d0c6a1a6d26c9ec9dcecaa7a471e0e",
Expand Down

0 comments on commit 4189c78

Please sign in to comment.