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 withafractionally-scaledfontdoesn'twork correctly in 1.5.0_02.



> If you happen to hit a character that's exactly the average 
> width, it  
> might look ok.  Characters that are significantly different from the  
> average (".", "i", "W", "M") get obviously out of sync much more  
> quickly.

That's the point - a monospaced font doesn't have any characters that
differs from the average, they all have the same spacing.  So for
Courier, either every character will be out by a certain amount or every
character will be correct and the problem won't show up.  With a
variable spaced font, some characters may be out and some may be right
depending on whether or not they wind up with a fractional width.  So if
you use a monospaced font at a size where the characters don't trigger
the problem you won't ever see the problem whereas if you use a variable
spaced font at any size you are likely to find a character somewhere
that triggers the problem.

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.