Olivier Halligon
Olivier Halligon
Actually I think I understood your problem: sizeToFit may resize the label with a smaller width than the original one. E.g. even if you label was originally, say 500px wide...
Hi My latest commit includes flooring the values returned by `sizeToFit` (to avoid subpixelling issues pointed out by issue #28) but also adding a +1 margin for the width to....
Wooops closed the issue by mistake (your sizeToFit issue is solved/closed by my last comment... but this issue #3 itself is related to "UILineBreakMode*Truncation" and should not be closed). Reopening.
@joshuatbrown Errr I don't understand your question… if any line break mode is fine for you, why don't you choose any line break mode that is not a `UILineBreakModeXXXTrunctation` (line...
So which version do you use, and which message do you get? Be sure to be up-to-date to have the latest bugfixes and improvements… and the right warning messages. You...
Thx I'll try that probably this weekend. :+1: To be honest I was kinda "afraid" to implement layout of `CTLines` myself, not because of the complexity of the code (pretty...
@mflint 
Thanks for the heads-up, I recentrly had this kind of issue reported and didn't have time to check yet but was already wondering why a crash would occur for that...
OK I got it, you talk about the new API to **draw** attributed strings (namely the [NSAttributedString UIKit Additions](https://developer.apple.com/library/ios/#documentation/UIKit/Reference/NSAttributedString_UIKit_Additions/Reference/Reference.html#//apple_ref/doc/uid/TP40011688), not any new API to **build** and NSMutableString and change its...
Yes I see the problem. CoreText expects `kCTFontNameAttribute` to contain a `CTFontRef` but UIKit and its drawing methods to draw `NSAttributedStrings` behave like this attribute should be an `UIFont` instead...