mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Fix a small mistake for cmap format 0
This commit is contained in:
parent
cf93f23178
commit
ac163da4c8
1 changed files with 3 additions and 1 deletions
4
fonts.js
4
fonts.js
|
@ -934,7 +934,9 @@ var Font = (function Font() {
|
|||
deltas.push(index);
|
||||
|
||||
var unicode = j + kCmapGlyphOffset;
|
||||
encoding[j].unicode = unicode;
|
||||
var mapping = encoding[j] || {};
|
||||
mapping.unicode = unicode;
|
||||
encoding[j] = mapping;
|
||||
glyphs.push({ unicode: unicode });
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue