Skip to content

Commit

Permalink
Merge pull request #9968 from Snuffleupagus/getFontFileType-MMType1
Browse files Browse the repository at this point in the history
Tweak the MMType1 font detection in `getFontFileType` to improve font telemetry (PR 9961 follow-up)
  • Loading branch information
brendandahl authored Aug 8, 2018
2 parents 13b9874 + 06d1ff5 commit 309b6f8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/core/fonts.js
Original file line number Diff line number Diff line change
Expand Up @@ -717,17 +717,15 @@ var Font = (function FontClosure() {
} else if (isType1File(file)) {
if (composite) {
fileType = 'CIDFontType0';
} else if (type === 'MMType1') {
fileType = 'MMType1';
} else {
fileType = 'Type1';
fileType = (type === 'MMType1' ? 'MMType1' : 'Type1');
}
} else if (isCFFFile(file)) {
if (composite) {
fileType = 'CIDFontType0';
fileSubtype = 'CIDFontType0C';
} else {
fileType = 'Type1';
fileType = (type === 'MMType1' ? 'MMType1' : 'Type1');
fileSubtype = 'Type1C';
}
} else {
Expand Down

0 comments on commit 309b6f8

Please sign in to comment.