I am using jdk1.2 on NT and it looks like TextLayout.getAscent() doesn't
return the correct value for all the fonts I try, especially the regular
fonts such as Helvetica.  Also, getBounds() doesn't return correct
bounding box for international fonts (specifically the free Bitstream
Cyberbit, and the Chinese fonts that come with MS NT), although it works
for English fonts such as Helvetica.

Am I right in concluding that a lot of things do not work in TextLayout?
I mean are others having the same problems?  In addition to the above,
I've also encountered several other problems such as I can't seem to
be able to change a font style (from regular to bold) unless I also
change either the font face or the font size.  And if I use an italic
style, the top right corner of a character may actually end up being
outside the region.  It looks like LineMeasurer doesn't take the slanting
angle into account when calculating the line breaks.

I'll appreciate any help.  Thanks!  --Pinghua
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 2D Home Page: http://java.sun.com/products/java-media/2D/

Reply via email to