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

Fixing first glyph index

This commit is contained in:
notmasteryet 2012-02-18 19:18:54 -06:00
parent 5efccea2af
commit 2703f3f692

View file

@ -1944,7 +1944,7 @@ var Font = (function FontClosure() {
// located in 0xF000 - 0xF0FF range. Using the first glyph code
// to detect the base glyphs offset.
this.symbolicGlyphsOffset = this.isSymbolicFont && !hasShortCmap ?
(glyphs[i].unicode & 0xFF00) : 0;
(glyphs[0].unicode & 0xFF00) : 0;
// remove glyph references outside range of avaialable glyphs
for (var i = 0, ii = ids.length; i < ii; i++) {