|
|
@ -2279,7 +2279,7 @@ var Font = (function FontClosure() { |
|
|
|
assert(cid <= 0xffff, 'Max size of CID is 65,535'); |
|
|
|
assert(cid <= 0xffff, 'Max size of CID is 65,535'); |
|
|
|
var glyphId = -1; |
|
|
|
var glyphId = -1; |
|
|
|
if (isCidToGidMapEmpty) { |
|
|
|
if (isCidToGidMapEmpty) { |
|
|
|
glyphId = charCode; |
|
|
|
glyphId = cid; |
|
|
|
} else if (cidToGidMap[cid] !== undefined) { |
|
|
|
} else if (cidToGidMap[cid] !== undefined) { |
|
|
|
glyphId = cidToGidMap[cid]; |
|
|
|
glyphId = cidToGidMap[cid]; |
|
|
|
} |
|
|
|
} |
|
|
|