projects
/
org.ibex.core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added Font.getGlyph(char)
[org.ibex.core.git]
/
src
/
org
/
ibex
/
graphics
/
Font.java
diff --git
a/src/org/ibex/graphics/Font.java
b/src/org/ibex/graphics/Font.java
index
6f1e69a
..
1f8f35c
100644
(file)
--- a/
src/org/ibex/graphics/Font.java
+++ b/
src/org/ibex/graphics/Font.java
@@
-103,6
+103,13
@@
public class Font {
return ret;
}
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;
static final Callable glyphRenderingTask = new Callable() { public Object run(Object o) {
// FIXME: this should be a low-priority task
glyphRenderingTaskIsScheduled = false;