sfntlyGlyph.setChar(ch);
return sfntlyGlyph;
}
private com.google.typography.font.sfntly.table.truetype.Glyph getGlyph(int glyphId) {
LocaTable locaTable = font.getTable(Tag.loca);
GlyphTable glyphTable = font.getTable(Tag.glyf);
int offset = locaTable.glyphOffset(glyphId);
int length = locaTable.glyphLength(glyphId);
com.google.typography.font.sfntly.table.truetype.Glyph glyph = glyphTable.glyph(offset, length);
return glyph;
}