X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2FGlyph.java;h=425cfd28bfd42375eb29fc4cdee574628f804410;hb=d8a2348c7712a69ac368335417a8f6616e535b1b;hp=6088717cf7f3905a7094741e60e971dec85869b8;hpb=29058bd93a808918b69221590a44e6fce48e84f8;p=org.ibex.core.git diff --git a/src/org/xwt/Glyph.java b/src/org/xwt/Glyph.java index 6088717..425cfd2 100644 --- a/src/org/xwt/Glyph.java +++ b/src/org/xwt/Glyph.java @@ -19,9 +19,11 @@ public class Glyph { Glyph ret = (Glyph)glyphCache.get(res, new Integer((((int)c) << 16) | pointsize)); if (ret != null) return ret; + ThreadMessage.fakeBackground = true; // FEATURE: be smarter here - if (c < 256) Freetype.renderGlyphs(res, pointsize, 0, 255, glyphCache); + if (c >= 32 && c < 127) Freetype.renderGlyphs(res, pointsize, 32, 126, glyphCache); else Freetype.renderGlyphs(res, pointsize, (int)c, (int)c, glyphCache); + ThreadMessage.fakeBackground = false; ret = (Glyph)glyphCache.get(res, new Integer((((int)c) << 16) | pointsize)); if (ret != null) return ret;