com.google.typography.font.sfntly.table.truetype.Glyph glyph = glyphTable.glyph(offset, length);
return glyph;
}
private int lookupGlyphIndex(char ch) {
CMapTable cmapTable = font.getTable(Tag.cmap);
CMap cmap = cmapTable.cmap(CMapId.WINDOWS_BMP);
int glyphId = cmap.glyphId(ch);
return glyphId;
}