X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fibex%2FFont.java;h=451672e4a3ad254ffdb6c3af31657b56e78e8f6c;hb=707b1064f56e88db0cf555a99cb4aa224484f51a;hp=bbe0ac21de22e2152ef421e245c86ef8ee5f8a69;hpb=580e7997d6f1e66c51114a050ff695bb15ed4e19;p=org.ibex.core.git diff --git a/src/org/ibex/Font.java b/src/org/ibex/Font.java index bbe0ac2..451672e 100644 --- a/src/org/ibex/Font.java +++ b/src/org/ibex/Font.java @@ -32,7 +32,10 @@ public class Font { public int width = -1; ///< the width of the glyph public int height = -1; ///< the height of the glyph public byte[] data = null; ///< the alpha channel samples for this font - void render() { if (!isLoaded) try { freetype.renderGlyph(this); } catch (IOException e) { Log.info(Freetype.class, e); } } + void render() { + if (!isLoaded) try { freetype.renderGlyph(this); } catch (IOException e) { Log.info(Freetype.class, e); } + isLoaded = true; + } }