1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

For CIDFontType2 use CID as glyph ID when missing CID to GID map.

This commit is contained in:
Brendan Dahl 2016-03-01 17:05:33 -08:00
parent c53581f4e5
commit 6e1d131384
4 changed files with 9 additions and 1 deletions

View file

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