mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Merge pull request #7050 from brendandahl/issue4402
For CIDFontType2 use CID as glyph ID when missing CID to GID map.
This commit is contained in:
commit
8402c79171
4 changed files with 9 additions and 1 deletions
|
@ -2286,7 +2286,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];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue