X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2FFont.java;h=c9f75667d20ca7070580ae7952e9774d1a39e195;hb=a1595b93f1dd8d55aa892cb7db82b45591ff6c28;hp=19c1a5cc900d53f4c40bf38a72829c34d0c12c4c;hpb=4ec2efbf4728b2db0225443dbcc59a3b6083ee07;p=org.ibex.core.git diff --git a/src/org/xwt/Font.java b/src/org/xwt/Font.java index 19c1a5c..c9f7566 100644 --- a/src/org/xwt/Font.java +++ b/src/org/xwt/Font.java @@ -63,7 +63,7 @@ public class Font { if (g.p == null) { glyphsToBeRendered.prepend(g); encounteredUnrenderedGlyph = true; - } else { + } else if (!encounteredUnrenderedGlyph) { if (pb != null && g.p != null) pb.drawPictureAlphaOnly(g.p, x + width, y + g.font.max_ascent - g.baseline, cx1, cy1, cx2, cy2, textcolor); width += g.advance; @@ -78,7 +78,11 @@ public class Font { } callback.perform(); }}); - if (!latinCharsPreloaded) for(int i=32; i<128; i++) glyphsToBeRendered.append(glyphs[i] = new Glyph((char)i, this)); + if (!latinCharsPreloaded) { + for(int i=48; i<57; i++) glyphsToBeRendered.append(glyphs[i] = new Glyph((char)i, this)); + for(int i=32; i<47; i++) glyphsToBeRendered.append(glyphs[i] = new Glyph((char)i, this)); + for(int i=57; i<128; i++) glyphsToBeRendered.append(glyphs[i] = new Glyph((char)i, this)); + } if (!latinCharsPreloaded || encounteredUnrenderedGlyph) Scheduler.add(glyphRenderingTask); latinCharsPreloaded = true; return ((((long)width) << 32) | (long)(height & 0xffffffffL));