Fix a little typo

This commit is contained in:
Vivien Nicolas 2011-08-30 00:59:37 +02:00
parent b4f3ceef85
commit e58b076eab

View File

@ -870,13 +870,15 @@ var Font = (function Font() {
} }
} }
if (properties.firstChar < 0x20) if (properties.firstChar < 0x20) {
var code = 0; var code = 0;
for (var j = 0; j < glyphs.length; j++) { for (var j = 0; j < glyphs.length; j++) {
var glyph = glyphs[j]; var glyph = glyphs[j];
glyphs[j].unicode += 0x1F; glyphs[j].unicode += 0x1F;
properties.glyphs[glyph.glyph] = encoding[++code] = glyph.unicode; properties.glyphs[glyph.glyph] = encoding[++code] = glyph.unicode;
}
} }
return cmap.data = createCMapTable(glyphs, deltas); return cmap.data = createCMapTable(glyphs, deltas);
} else if (format == 6) { } else if (format == 6) {
// Format 6 is a 2-bytes dense mapping, which means the font data // Format 6 is a 2-bytes dense mapping, which means the font data