@Test public void testRenderStringWithoutKerning() throws Exception { initializeFontRenderer(); fontRenderer.beforeRender(null); expect(fontRenderer.preProcess("ba", 0)).andReturn(0); fontRenderer.render("name-0", 100, 100, 'b', 1.f, 1.f, 1.f, 0.9f, 0.8f, 0.7f); expect(fontRenderer.preProcess("ba", 1)).andReturn(1); fontRenderer.render("name-0", 105, 100, 'a', 1.f, 1.f, 1.f, 0.9f, 0.8f, 0.7f); fontRenderer.afterRender(); replay(fontRenderer); jglFont = new JGLFontImpl(createBitmapFont()); jglFont.renderText(100, 100, "ba", 1.f, 1.f, 1.f, 0.9f, 0.8f, 0.7f); }
@Override public void renderText( final int x, final int y, final String text) { renderText(x, y, text, 1.f, 1.f, 1.f, 1.f, 1.f, 1.f); }
JGLFontImpl implements JGLFont { @Override public void renderText( final int x, final int y, final String text) { renderText(x, y, text, 1.f, 1.f, 1.f, 1.f, 1.f, 1.f); } }
JGLFontImpl implements JGLFont { @Override public void renderText( final int x, final int y, final String text) { renderText(x, y, text, 1.f, 1.f, 1.f, 1.f, 1.f, 1.f); } JGLFontImpl(final JGLAbstractFontData fontData); }
JGLFontImpl implements JGLFont { @Override public void renderText( final int x, final int y, final String text) { renderText(x, y, text, 1.f, 1.f, 1.f, 1.f, 1.f, 1.f); } JGLFontImpl(final JGLAbstractFontData fontData); @Override void renderText(
      final int x,
      final int y,
      final String text); @Override void renderText(
      final int x,
      final int y,
      final String text,
      final float sizeX,
      final float sizeY,
      final float r,
      final float g,
      final float b,
      final float a); @Override int getCharacterWidth(final int currentCharacter, final int nextCharacter); @Override int getCharacterWidth(final int currentCharacter, final int nextCharacter, final float size); @Override int getStringWidth(final String text); @Override int getStringWidth(final String text, final float size); @Override int getHeight(); @Override void setCustomRenderState(final Object o); }
JGLFontImpl implements JGLFont { @Override public void renderText( final int x, final int y, final String text) { renderText(x, y, text, 1.f, 1.f, 1.f, 1.f, 1.f, 1.f); } JGLFontImpl(final JGLAbstractFontData fontData); @Override void renderText(
      final int x,
      final int y,
      final String text); @Override void renderText(
      final int x,
      final int y,
      final String text,
      final float sizeX,
      final float sizeY,
      final float r,
      final float g,
      final float b,
      final float a); @Override int getCharacterWidth(final int currentCharacter, final int nextCharacter); @Override int getCharacterWidth(final int currentCharacter, final int nextCharacter, final float size); @Override int getStringWidth(final String text); @Override int getStringWidth(final String text, final float size); @Override int getHeight(); @Override void setCustomRenderState(final Object o);  }