Merge pull request #9968 from Snuffleupagus/getFontFileType-MMType1

Tweak the MMType1 font detection in `getFontFileType` to improve font telemetry (PR 9961 follow-up)
This commit is contained in:
Brendan Dahl 2018-08-08 08:10:08 -07:00 committed by GitHub
commit 309b6f820e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {