|
|
|
@ -3175,7 +3175,11 @@ var Font = (function FontClosure() {
@@ -3175,7 +3175,11 @@ var Font = (function FontClosure() {
|
|
|
|
|
var offset = font.getInt32() >>> 0; |
|
|
|
|
var useTable = false; |
|
|
|
|
|
|
|
|
|
if (platformId === 1 && encodingId === 0) { |
|
|
|
|
if (platformId === 0 && encodingId === 0) { |
|
|
|
|
useTable = true; |
|
|
|
|
// Continue the loop since there still may be a higher priority
|
|
|
|
|
// table.
|
|
|
|
|
} else if (platformId === 1 && encodingId === 0) { |
|
|
|
|
useTable = true; |
|
|
|
|
// Continue the loop since there still may be a higher priority
|
|
|
|
|
// table.
|
|
|
|
@ -4148,6 +4152,12 @@ var Font = (function FontClosure() {
@@ -4148,6 +4152,12 @@ var Font = (function FontClosure() {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} else if (cmapPlatformId === 0 && cmapEncodingId === 0) { |
|
|
|
|
// Default Unicode semantics, use the charcodes as is.
|
|
|
|
|
for (i = 0; i < cmapMappingsLength; ++i) { |
|
|
|
|
charCodeToGlyphId[cmapMappings[i].charCode] = |
|
|
|
|
cmapMappings[i].glyphId; |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
// For (3, 0) cmap tables:
|
|
|
|
|
// The charcode key being stored in charCodeToGlyphId is the lower
|
|
|
|
|