From 6ae135539d773b69656d880684d36f4b01ab9eeb Mon Sep 17 00:00:00 2001 From: Brendan Dahl Date: Mon, 10 Dec 2012 14:59:23 -0800 Subject: [PATCH] Warn on opentype fonts. --- src/fonts.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/fonts.js b/src/fonts.js index 217f38e5c..6d674479c 100644 --- a/src/fonts.js +++ b/src/fonts.js @@ -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; }