Skip to content

Commit

Permalink
Fix ups to work with the new GlyphLayout and BitmapFontCache.
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanSweet committed Mar 19, 2015
1 parent 2f5473c commit edcb01f
Show file tree
Hide file tree
Showing 28 changed files with 227 additions and 582 deletions.
Expand Up @@ -92,6 +92,7 @@
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.scenes.scene2d.utils.Align;
import com.badlogic.gdx.tools.hiero.unicodefont.UnicodeFont;
import com.badlogic.gdx.tools.hiero.unicodefont.effects.EffectUtil;

Expand Down Expand Up @@ -986,7 +987,7 @@ public void render () {
GL11.glClear(GL11.GL_COLOR_BUFFER_BIT);

batch.begin();
font.drawWrapped(batch, sampleTextPane.getText(), 0, viewHeight, viewWidth);
font.draw(batch, sampleTextPane.getText(), 0, viewHeight, viewWidth, Align.left, true);
batch.end();
} else {
glClearColor(1, 1, 1, 1);
Expand Down

0 comments on commit edcb01f

Please sign in to comment.