diff options
Diffstat (limited to 'src/jogl/classes/jogamp')
-rw-r--r-- | src/jogl/classes/jogamp/graph/font/typecast/TypecastFont.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/jogl/classes/jogamp/graph/font/typecast/TypecastFont.java b/src/jogl/classes/jogamp/graph/font/typecast/TypecastFont.java index cc0aece27..26952ce9a 100644 --- a/src/jogl/classes/jogamp/graph/font/typecast/TypecastFont.java +++ b/src/jogl/classes/jogamp/graph/font/typecast/TypecastFont.java @@ -193,9 +193,13 @@ class TypecastFont implements Font { TypecastGlyph result = (TypecastGlyph) idToGlyph.get(glyph_id); if (null == result) { final jogamp.graph.font.typecast.ot.Glyph glyph = font.getGlyph(glyph_id); - final PostTable post = font.getPostTable(); - final String glyph_name = null != post ? post.getGlyphName(glyph_id) : ""; - + final String glyph_name; + if( null != glyph ) { + final PostTable post = font.getPostTable(); + glyph_name = null != post ? post.getGlyphName(glyph_id) : ""; + } else { + glyph_name = ""; + } final int glyph_advance; final int glyph_leftsidebearings; final AABBox glyph_bbox; |