public Glyph getGlyph(char ch) {
int glyphIndex = lookupGlyphIndex(ch);
com.google.typography.font.sfntly.table.truetype.Glyph glyph = getGlyph(glyphIndex);
HorizontalMetricsTable hmtx = font.getTable(Tag.hmtx);
double width = toPixels(glyph.xMax() - glyph.xMin());
double height = toPixels(glyph.yMax() - glyph.yMin());
double advance = toPixels(hmtx.advanceWidth(glyphIndex));
SfntlyGlyph sfntlyGlyph = new SfntlyGlyph(advance, width, height, glyph);
sfntlyGlyph.setScale(size / unitsPerEm);
sfntlyGlyph.setYBounds(yMin, yMax);
sfntlyGlyph.setFontSize(size);