Skip to content

Commit

Permalink
updating bitmap font
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdesl committed Dec 13, 2012
1 parent 30d278a commit 261bbfb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/mdesl/graphics/text/BitmapFont.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@
*/
public class BitmapFont {

public static final char UNKNOWN_CHAR = '?';

//TODO: fix up baseLine, ascent, descent, etc.
int lineHeight;
int baseLine;
Expand Down Expand Up @@ -122,7 +120,7 @@ public void drawText(SpriteBatch batch, CharSequence text, int x, int y, int sta
char c = text.charAt(i);
//TODO: make unsupported glyphs a bit cleaner...
if (c > glyphs.length || c < 0)
c = UNKNOWN_CHAR;
continue;
Glyph g = glyphs[c];
if (g==null)
continue;
Expand Down

0 comments on commit 261bbfb

Please sign in to comment.