The API docs for java.awt.Font.layoutGlyphVector(...) have a slight bug.
The underlying text reads:
-quote-
DDReturns a new codeGlyphVector/code object, performing full
layout of the text if possible. Full layout is required for
complex text, such as Arabic or Hindi. Support for different
1. Yes that's a bad javadoc closing tag placement.
2. What it is trying to say is that if you have text that needs Bidi,
then use the java.text.Bidi analysis to
break it into runs, each of which can then be used with
layoutGlyphVector. This does mean you'd
have multiple GVs you'd have to draw