]> git.parisson.com Git - pdf.js.git/commitdiff
Fixing first glyph index
authornotmasteryet <async.processingjs@yahoo.com>
Sun, 19 Feb 2012 01:18:54 +0000 (19:18 -0600)
committernotmasteryet <async.processingjs@yahoo.com>
Sun, 19 Feb 2012 01:18:54 +0000 (19:18 -0600)
src/fonts.js

index b7dec9a94b25464be3e13ae37ef082b396cb35e3..dc57417de0cab3b6cddd5c17812625a3d52815b2 100644 (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++) {