Does anyone know how to set the line-height (which is a CSS property) of text with Titanium?
This is the same thing as leading in traditional graphic design terms.
Right now, the line-height looks terrible on the iPhone, as lines o text in paragraphs are jammed up next to each other.
Any help is appreciated!
right now, you'll have to use a webview to control line-height with that level of granularity. however, we're hoping to add better native text capabilities in a future release.
I thirst for line-height property.
12 months later… is it possible yet to control the line height of a label?
I, too, am incredibly thirsty for a line-height property.
Has there been any progress on this as in some cases the spacing is terrible and I need to be able to control this.
I need it too… Me so thirsty.
UIKit's UILabel is to blame here - it's not possible to control line-height with the native controls. There's a native solution involving the replacement of UILabel by a custom text-renderer control: MSLabel
A simple solution for me was to patch the font directly using OSX Font Tool:
Minor Truetype Font Editing on a Mac
I've modified lineGap, ascender and descender to get the correct line-height - had to delete build/iphone each time for the font to be picked up.
OK, thanks Jeff