diff options
Diffstat (limited to 'src/jogl/classes')
-rw-r--r-- | src/jogl/classes/jogamp/graph/font/typecast/TypecastFont.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/jogl/classes/jogamp/graph/font/typecast/TypecastFont.java b/src/jogl/classes/jogamp/graph/font/typecast/TypecastFont.java index dcf8ce56c..1bc0fe0f4 100644 --- a/src/jogl/classes/jogamp/graph/font/typecast/TypecastFont.java +++ b/src/jogl/classes/jogamp/graph/font/typecast/TypecastFont.java @@ -329,9 +329,7 @@ class TypecastFont implements Font { left_glyph = null; // break kerning continue; } else if( glyph.isWhiteSpace() ) { // covers 'space' and all non-contour symbols - advanceTotal += glyph.getAdvanceFU(); left_glyph = null; // break kerning - continue; } if( null != left_glyph ) { advanceTotal += left_glyph.getKerningFU(glyph_id); @@ -340,7 +338,9 @@ class TypecastFont implements Font { res.resize(temp1.transform(glyph.getBoundsFU(), temp_box)); advanceTotal += glyph.getAdvanceFU(); - left_glyph = glyph; + if( !glyph.isWhiteSpace() ) { + left_glyph = glyph; + } } } return res; @@ -419,7 +419,9 @@ class TypecastFont implements Font { res.resize(temp1.transform(glyphShape.getBounds(), temp_box)); visitor.visit(character, glyph, temp1); advanceTotal += glyph.getAdvance(); - left_glyph = glyph; + if( !glyph.isWhiteSpace() ) { + left_glyph = glyph; + } } } return res; |