We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b4adbe4 + 6ae1355 commit 971bee4Copy full SHA for 971bee4
src/fonts.js
@@ -2303,6 +2303,11 @@ var Font = (function FontClosure() {
2303
type = 'Type1';
2304
if (subtype == 'CIDFontType0C' && type != 'CIDFontType0')
2305
type = 'CIDFontType0';
2306
+ // XXX: Temporarily change the type for open type so we trigger a warning.
2307
+ // This should be removed when we add support for open type.
2308
+ if (subtype === 'OpenType') {
2309
+ type = 'OpenType';
2310
+ }
2311
2312
var data;
2313
switch (type) {
@@ -2327,7 +2332,7 @@ var Font = (function FontClosure() {
2327
2332
break;
2328
2333
2329
2334
default:
2330
- warn('Font ' + properties.type + ' is not supported');
2335
+ warn('Font ' + type + ' is not supported');
2331
2336
2337
}
2338
0 commit comments