public Glyph getGlyph(char c) { int index = index(c); return (index == -1) ? null : glyphs[index]; }
public Glyph getGlyph(char c) { int index = index(c); return (index == -1) ? null : glyphs[index]; }
/** * Width of this character for a font of size 1. */ public float width(char c) { if (c == 32) return width('i'); int cc = index(c); if (cc == -1) return 0; return ((float) glyphs[cc].setWidth / (float) size); }
/** * Width of this character for a font of size 1. */ public float width(char c) { if (c == 32) return width('i'); int cc = index(c); if (cc == -1) return 0; return ((float) glyphs[cc].setWidth / (float) size); }