- // FIXME: try to use os acceleration
- public void fillTrapezoid(int x1, int x2, int y1, int x3, int x4, int y2, int argb) {
+ // this doens't seem to work on Windows
+ public void drawGlyph(org.ibex.graphics.Font.Glyph source, Affine a, Mesh h, int argb, int bg) {
+ //throw new Error("drawGlyph() not implemented");
+ /*
+ Image i = ((AWTGlyph)source).getImage();
+ if (((AWTGlyph)source).i2 == null)
+ ((AWTGlyph)source).i2 = new BufferedImage(i.getWidth(null), i.getHeight(null), BufferedImage.TYPE_INT_ARGB);
+ Image i2 = ((AWTGlyph)source).i2;
+ Graphics g2 = i2.getGraphics();
+ g2.setColor(new java.awt.Color((argb & 0x00FF0000) >> 16, (argb & 0x0000FF00) >> 8, (argb & 0x000000FF)));
+ g2.fillRect(0, 0, i2.getWidth(null), i2.getHeight(null));
+ g2.drawImage(i, 0, 0, null);
+ Graphics g = getGraphics();
+ g.setClip(cx1, cy1, cx2 - cx1, cy2 - cy1);
+ g.drawImage(i2, dx, dy, i2.getWidth(null), i2.getHeight(null), null);