diff options
Diffstat (limited to 'src/demos/com/jogamp/opengl')
-rw-r--r-- | src/demos/com/jogamp/opengl/demos/graph/TextRendererGLELBase.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/demos/com/jogamp/opengl/demos/graph/TextRendererGLELBase.java b/src/demos/com/jogamp/opengl/demos/graph/TextRendererGLELBase.java index 1f89fb40e..b515db2a9 100644 --- a/src/demos/com/jogamp/opengl/demos/graph/TextRendererGLELBase.java +++ b/src/demos/com/jogamp/opengl/demos/graph/TextRendererGLELBase.java @@ -245,7 +245,7 @@ public abstract class TextRendererGLELBase implements GLEventListener { final float sxy = pixelScale * pixelSize; final int newLineCount = TextRegionUtil.getCharCount(text, '\n'); final float lineHeight = font.getLineHeight(); - dx += sxy * font.getAdvanceWidth('X') * column; + dx += sxy * font.getAdvanceWidth( font.getGlyphID( 'X' ) ) * column; dy -= sxy * lineHeight * ( row + 1 ); final PMVMatrix4f pmvMatrix = getMatrix(); @@ -294,7 +294,7 @@ public abstract class TextRendererGLELBase implements GLEventListener { } final float sxy = pixelScale * pixelSize; final float lineHeight = font.getLineHeight(); - dx += sxy * font.getAdvanceWidth('X') * column; + dx += sxy * font.getAdvanceWidth( font.getGlyphID( 'X' ) ) * column; dy -= sxy * lineHeight * ( row + 1 ); final PMVMatrix4f pmvMatrix = getMatrix(); |