parseGlyfTableOnLowMemory function
dynamic
parseGlyfTableOnLowMemory(
- dynamic data,
- dynamic start,
- dynamic loca,
- dynamic font,
Implementation
parseGlyfTableOnLowMemory(data, start, loca, font) {
var glyphs = new GlyphSet(font, null);
font._push = (i) {
var offset = loca[i];
var nextOffset = loca[i + 1];
if (offset != nextOffset) {
glyphs.push(i, ttfGlyphLoader(font, i, parseGlyph, data, start + offset, buildPath));
} else {
glyphs.push(i, glyphLoader(font, i));
}
};
return glyphs;
}