|
|
@ -3250,7 +3250,10 @@ var Font = (function FontClosure() { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (!potentialTable) { |
|
|
|
if (potentialTable) { |
|
|
|
|
|
|
|
font.pos = start + potentialTable.offset; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (!potentialTable || font.peekByte() === -1) { |
|
|
|
warn('Could not find a preferred cmap table.'); |
|
|
|
warn('Could not find a preferred cmap table.'); |
|
|
|
return { |
|
|
|
return { |
|
|
|
platformId: -1, |
|
|
|
platformId: -1, |
|
|
@ -3260,7 +3263,6 @@ var Font = (function FontClosure() { |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
font.pos = start + potentialTable.offset; |
|
|
|
|
|
|
|
var format = font.getUint16(); |
|
|
|
var format = font.getUint16(); |
|
|
|
var length = font.getUint16(); |
|
|
|
var length = font.getUint16(); |
|
|
|
var language = font.getUint16(); |
|
|
|
var language = font.getUint16(); |
|
|
@ -3695,6 +3697,9 @@ var Font = (function FontClosure() { |
|
|
|
default: |
|
|
|
default: |
|
|
|
warn('Unknown/unsupported post table version ' + version); |
|
|
|
warn('Unknown/unsupported post table version ' + version); |
|
|
|
valid = false; |
|
|
|
valid = false; |
|
|
|
|
|
|
|
if (properties.defaultEncoding) { |
|
|
|
|
|
|
|
glyphNames = properties.defaultEncoding; |
|
|
|
|
|
|
|
} |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
properties.glyphNames = glyphNames; |
|
|
|
properties.glyphNames = glyphNames; |
|
|
|