1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

Merge pull request #2451 from brendandahl/opentype-warn

Warn on opentype fonts.
This commit is contained in:
Yury Delendik 2012-12-10 15:16:20 -08:00
commit 971bee4d30

View file

@ -2303,6 +2303,11 @@ var Font = (function FontClosure() {
type = 'Type1';
if (subtype == 'CIDFontType0C' && type != 'CIDFontType0')
type = 'CIDFontType0';
// XXX: Temporarily change the type for open type so we trigger a warning.
// This should be removed when we add support for open type.
if (subtype === 'OpenType') {
type = 'OpenType';
}
var data;
switch (type) {
@ -2327,7 +2332,7 @@ var Font = (function FontClosure() {
break;
default:
warn('Font ' + properties.type + ' is not supported');
warn('Font ' + type + ' is not supported');
break;
}