|
|
@ -2303,6 +2303,11 @@ var Font = (function FontClosure() { |
|
|
|
type = 'Type1'; |
|
|
|
type = 'Type1'; |
|
|
|
if (subtype == 'CIDFontType0C' && type != 'CIDFontType0') |
|
|
|
if (subtype == 'CIDFontType0C' && type != 'CIDFontType0') |
|
|
|
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; |
|
|
|
var data; |
|
|
|
switch (type) { |
|
|
|
switch (type) { |
|
|
@ -2327,7 +2332,7 @@ var Font = (function FontClosure() { |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
default: |
|
|
|
default: |
|
|
|
warn('Font ' + properties.type + ' is not supported'); |
|
|
|
warn('Font ' + type + ' is not supported'); |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|