+ // this doens't seem to work on Windows
+ public void drawGlyph(org.ibex.graphics.Font.Glyph source, Affine a, Hull h, int rgb, int bg) {
+ Image i = ((AWTGlyph)source).getImage();
+ Image i2 = ((AWTGlyph)source).i2;
+ if (((AWTGlyph)source).i2 == null) {
+ ((AWTGlyph)source).i2 = new BufferedImage(i.getWidth(null), i.getHeight(null), BufferedImage.TYPE_INT_ARGB);
+ i2 = ((AWTGlyph)source).i2;
+ i2.getGraphics().drawImage(i, 0, 0, null);
+ }
+ Graphics2D g = (Graphics2D)((AWTGlyph)source).i2.getGraphics();
+ g.setComposite(AlphaComposite.SrcIn);
+ g.setColor(new java.awt.Color((rgb & 0x00FF0000) >> 16, (rgb & 0x0000FF00) >> 8, (rgb & 0x000000FF)));
+ g.fillRect(0, 0, i2.getWidth(null), i2.getHeight(null));
+ Graphics2D g2 = (Graphics2D)this.i.getGraphics().create();
+ g2.transform(new java.awt.geom.AffineTransform(a.a, a.b, a.c, a.d, a.e, a.f));
+ g2.drawImage(i2, 0, 0, null);
+ }
+