From 2703f3f6928659244dfe3d713d0821d9514f106d Mon Sep 17 00:00:00 2001 From: notmasteryet Date: Sat, 18 Feb 2012 19:18:54 -0600 Subject: [PATCH] Fixing first glyph index --- src/fonts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fonts.js b/src/fonts.js index b7dec9a94..dc57417de 100644 --- a/src/fonts.js +++ b/src/fonts.js @@ -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++) {