Re: CTFramesetterSuggestFrameSizeWithConstraints cuts off text
Re: CTFramesetterSuggestFrameSizeWithConstraints cuts off text
- Subject: Re: CTFramesetterSuggestFrameSizeWithConstraints cuts off text
- From: Robert Vojta <email@hidden>
- Date: Sat, 18 May 2013 00:57:49 +0200
Yep, I saw it as well. But IIRC it was in rare occasions. Rare in my point of view, because we do use "normal" alphabet. the problem was in special characters, emoji, symbols, ... In these times I tried every possible combination/available method/property/calculation/... without success. Also tried 3rd party labels, later I tried DTCoreText from Cocoanetics with the same output - wrong height. I also asked Apple engineers and then I gave up. Not sure, but I did suspect them that they use private API or dunno what, because their apps didn't have problems.
I'm pretty happy with attributed string and auto layout for now. It's enough for almost all needs and I'm glad that I'm not forced to dive into this "mess" again.
On Friday, 17. May 2013 at 23:42, Quincey Morris wrote:
> On May 17, 2013, at 11:20 , Robert Vojta <email@hidden (mailto:email@hidden)> wrote:
>
> > Height was wrong even if returned width <= constrained width.
> Once I took proper account of the returned width, I got no more "wrong" heights.
>
> However, IIRC, there was a separate issue that fractional line heights didn't work correctly. Maybe you ran into that problem as well.
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden