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 afractionally-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.

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

Did you notice a difference with monospaced fonts, Adrian?

My sample uses Courier; I haven't seen any difference in behaviour
with different fonts.


I did see a difference on Solaris 9, but that's possibly because we
haven't tried too many weird point sizes. There is no reason that a
monospaced font couldn't have a fractional width for *every* character.
This in fact matches what I'm seeing on OS X. With courier, it doesn't
seem to matter which character I type, the caret positioning gets out of
sync. However, if I change to Times New Roman, 'f' and 'd' do not cause
a problem whereas 'a' does (I'm typing in the second field down btw).


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 with afractionally-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.