From: adam Date: Sun, 9 Jan 2005 09:08:51 +0000 (+0000) Subject: added Font.getGlyph(char) X-Git-Tag: 01-July-2005~36 X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=commitdiff_plain;h=e6792a95656bee5fba9891c625bf277804a1c6a5 added Font.getGlyph(char) darcs-hash:20050109090851-5007d-1e50c8c1f111b80be448169773dcf501243d5c16.gz --- 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;