mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Fixes gidStart for CID fonts
This commit is contained in:
parent
c320a0c2a5
commit
9a633f26a0
1 changed files with 3 additions and 3 deletions
|
@ -5611,6 +5611,9 @@ var CFFFont = (function CFFFontClosure() {
|
|||
var unassignedUnicodeItems = [];
|
||||
var inverseEncoding = [];
|
||||
var gidStart = 0;
|
||||
if (charsets[0] === '.notdef') {
|
||||
gidStart = 1;
|
||||
}
|
||||
// According to section 9.7.4.2 CIDFontType0C glyph selection should be
|
||||
// handled differently.
|
||||
if (this.properties.subtype === 'CIDFontType0C') {
|
||||
|
@ -5643,9 +5646,6 @@ var CFFFont = (function CFFFontClosure() {
|
|||
inverseEncoding[gid] = charcode | 0;
|
||||
}
|
||||
}
|
||||
if (charsets[0] === '.notdef') {
|
||||
gidStart = 1;
|
||||
}
|
||||
}
|
||||
|
||||
for (var i = gidStart, ii = charsets.length; i < ii; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue