On Oct 21, 2011, at 6:07 AM, David Hoerl wrote:

> I was having this bizarre issue with some odd text alignments. In the end I 
> tracked it down to sizeWithFont returning different CGSizes than did 
> drawAtPoint. The latter returns widths (using Courier 19pt bold) of around 
> 12.002 while sizeWithFont says 13.00. Its like sizeWithFont is using "ceilf" 
> on the values...
> 
> Is this a documentation issue or system problem?
> 
> In the end I just use a clearColor to draw the text, but boy was I surprised 
> at this.


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 – if you have a new one please file a bug with a simple 
example of what you've found.
--
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