Hi,
I generate a texture from a BufferedImage. I draw a background, then a String and then an outline. So far the following code worked well, but now I get problems with the outline when the glyph is built from two Unicode characters, e.g. Hebrew בּ
SOLVED.
Stupid me, I can forget all this PathIterator crap…
FontRenderContext frc = bg.getFontRenderContext();
TextLayout tl = new TextLayout(character, font, frc);
Shape shape = tl.getOutline(AffineTransform.getTranslateInstance(dx, dy));
bg.draw(shape);
Works for all letters, and looks better (and is probably faster)