nicklockwood / FXLabel

[DEPRECATED]
http://charcoaldesign.co.uk/source/cocoa#fxlabel
Other
816 stars 125 forks source link

Update cocoa pods? #6

Closed zakdances closed 11 years ago

zakdances commented 11 years ago

I'm using the FXLabel pod (version 1.3.7) and it looks like its missing some of the latest additions, namely the characterSpacing and lineSpacing properties. Is it possible to push the latest version to cocoa pods?

nicklockwood commented 11 years ago

characterSpacing was introduced in version 1.5, which is still in beta, so I don't recommend pushing that to cocoa pods. Feel free to update the podspec with version 1.4.2 though (you can update it yourself and add a pull request to the Cocoa Pods project on Github - I don't use Cocoa Pods so I don't maintain this myself).

zakdances commented 11 years ago

Ok, thanks. Also, as a feature request, it'd be great if FXLabel could implement adjustsFontSizeToFitWidth and adjustsLetterSpacingToFitWidth that work with multiline FXLabels/UILabels. (currently only works with single line)

nicklockwood commented 11 years ago

My aim so far has been to try and emulate the behaviour of an ordinary UILabel as closely as possible when it comes to text layout, and UILabel doesn't support adjusting the text size for multiline labels, probably because the calculations are so complex. I'll think about how difficult that would be to implement.