2003/10/01 03:08:31
authormegacz <megacz@xwt.org>
Fri, 30 Jan 2004 07:38:51 +0000 (07:38 +0000)
committermegacz <megacz@xwt.org>
Fri, 30 Jan 2004 07:38:51 +0000 (07:38 +0000)
darcs-hash:20040130073851-2ba56-fd4dfa836e1d80c229514870e346010baeba7ce8.gz

src/org/xwt/Box.java.pp

index b5a7b80..c566a01 100644 (file)
@@ -478,13 +478,14 @@ public final class Box extends JS.Scope {
             // FIXME: clipping
             char c = text.charAt(i);
             Glyph g = Glyph.getGlyph(font, fontsize, c);
             // FIXME: clipping
             char c = text.charAt(i);
             Glyph g = Glyph.getGlyph(font, fontsize, c);
-           buf.drawPicture(g.p,
-                            x + hpad,
-                            y + vpad + g.max_ascent - g.baseline,
-                            x + hpad + g.p.getWidth(),
-                            y + vpad + g.max_ascent - g.baseline + g.p.getHeight(),
-                            0, 0,
-                            g.p.getWidth(), g.p.getHeight());
+           buf.drawPictureAlphaOnly(g.p,
+                                     x + hpad,
+                                     y + vpad + g.max_ascent - g.baseline,
+                                     x + hpad + g.p.getWidth(),
+                                     y + vpad + g.max_ascent - g.baseline + g.p.getHeight(),
+                                     0, 0,
+                                     g.p.getWidth(), g.p.getHeight(),
+                                     strokecolor);
             x += g.advance;
         }
     }
             x += g.advance;
         }
     }