X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fgraphics%2FFont.java;h=1f8f35c0eb1a344f81490252cb7f44ad143ebede;hp=6f1e69a88609b92cc2c1cc3fd3690b77d37c66b5;hb=e6792a95656bee5fba9891c625bf277804a1c6a5;hpb=33002baf4ee9f34bd8675d4aa06bcac0eec5f817;ds=sidebyside diff --git a/src/org/ibex/graphics/Font.java b/src/org/ibex/graphics/Font.java index 6f1e69a..1f8f35c 100644 --- a/src/org/ibex/graphics/Font.java +++ b/src/org/ibex/graphics/Font.java @@ -103,6 +103,13 @@ public class Font { return ret; } + public Glyph getGlyph(char c) { + rasterizeGlyphs(c+"", null, 0, 0, 0, 0, 0, 0, 0); + Glyph g = glyphs[c]; + g.render(); + return g; + } + static final Callable glyphRenderingTask = new Callable() { public Object run(Object o) { // FIXME: this should be a low-priority task glyphRenderingTaskIsScheduled = false;