index = code = properties.glyphs[glyph] || index;
var width = widths[code] || defaultWidth;
- if (index <= 0x1f || (index >= 127 && code <= 255))
+ if (code <= 0x1f || (code >= 127 && code <= 255))
code += kCmapGlyphOffset;
properties.encoding[index] = code;
var index = GlyphsUnicode[glyph] || i;
glyphsMap[glyph] = encodingMap[i] = index;
- if (index <= 0x1f || (index >= 128 && code <= 255))
+ if (index <= 0x1f || (index >= 127 && index <= 255))
glyphsMap[glyph] = encodingMap[i] += kCmapGlyphOffset;
}
}