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.



Whoops, you're right; I was mixing up two different tests there. If you take my sample, change "Courier" to "Arial", and try "mmmmm...", it seems to work; other characters get out of synch.

Anyway...given that Apple has just been working in this area -- OS X 10.4 fixes some major problems with font scaling (search the recent archives for AffineTransform) -- and given that this works in 1.4.2_07, I'm hopeful that this will be fixed in 1.5.0 very quickly.

Jim.

On 29-May-05, at 4:34 PM, Adrian Sutton wrote:

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
References: 
 >RE: Bug ID 4132856: JTextField withafractionally-scaledfontdoesn'twork correctly in 1.5.0_02. (From: "Adrian Sutton" <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.