On Oct 22, 2011, at 1:21 PM, Jens Alfke wrote:

> 
> On Oct 21, 2011, at 10:47 AM, David Duncan wrote:
> 
>> Are you seeing this on iOS 5.0 only or on previous versions of iOS? There 
>> were some text changes that (for a time) leaked out non-integral values, but 
>> we thought we caught them
> 
> Huh? But text advances _are_ non-integral values. You can’t do proper line 
> layout if your metrics all get rounded to the nearest integer.

Prior to iOS 5 -drawAtPoint: did return integral values, which could lead to 
odd situations such as rendering @"m" and @"a" requiring more of an advance 
than rendering @"ma". Changes below UIKit caused the advances returned by 
-drawAtPoint: and similar methods to be non-integral, which of course would 
change layout for some clients.

And your right, you do want non-integral values to do high quality text layout, 
and that may be a good reason not to change this back, but it is a change 
relative to previous OSes, so it is something to at least be understood.
--
David Duncan

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to