protected int GetGlyphWidth(int glyph) { if (glyph >= GlyphWidths.Length) glyph = GlyphWidths.Length - 1; return GlyphWidths[glyph]; }