// 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;
}
}