font.unitsPerEm = 2048;
font.ascent = 1854;
font.descent = -434;
font.baseline = 0;
TinyUtils parsers = new TinyUtils();
/* Read glyph data and fill the glyph table for this TinyFont. */
for (int i = 0; i < GLYPH_PATHDATA.length; i++) {
/* Create one glyph. */
TinyGlyph glyph = new TinyGlyph();
glyph.unicode = GLYPH_UNICODE[i];
glyph.horizAdvX = GLYPH_WIDTH[i];
try {
glyph.path = parsers.parsePath(GLYPH_PATHDATA[i], GLYPH_PATHDATA[i].length, true);
} catch (Exception e) {
}
font.glyphs.put(new TinyNumber(glyph.unicode), glyph);
}
/* Add the font to the font table. */