Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Bug ID 4132856: JTextField with a fractionally-scaledfontdoesn'twork correctly in 1.5.0_02.



> Well, it was worth a try....
> 
> I just tried hacking together this workaround based on fiddling with  
> fractional metrics; it doesn't make any difference.

Yeah I tried that one myself.  It doesn't work because by the time paint
is called all the layout stuff is done so setting fractional font widths
to off makes no difference (I believe the painting code is handling the
fractional widths correctly but the layout code is not).  You need to
find a way to turn off fractional font metrics across the entire JVM -
which is what the "i18n" system property does on Windows and Solaris.

The only solution we found was to use a monospaced font or set the
"i18n" system property - our client's not particularly happy about
either.

Regards,

Adrian Sutton.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.