[TIMOB-104] Support for fontSize and fontWeight
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:52:00.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 0.7.0 |
Components | iOS |
Labels | n/a |
Reporter | Nolan Wright |
Assignee | Blain Hamon |
Created | 2011-04-15T02:23:42.000+0000 |
Updated | 2011-04-17T01:52:00.000+0000 |
Description
We need to add support for fontSize and fontWeight to the following controls:
-
textfield
-
textarea
-
buttons
-
activity indicator text (iphone only)
-
progress bar text (iphone only)
-
pickers (when implemented)
-
table views
fontSize should be either a number like 18 or it can be '18px'
fontWeight should be either 'bold' or 'normal'
I'd like to add more properties, maybe for after GA, but to keep in mind:
fontFamily, string, defines the font family. A constant of Titanium.UI.Fonts.SYSTEM will be provided, as well as Titanium.UI.Fonts as an object listing fonts and equivalents (IE, Titanium.UI.Fonts["Helvetica"] is "Helvetica" if the font exists, perhaps a different family if there's a replacement, or undefined if not found.) Default is 'Titanium.UI.Fonts.SYSTEM'
fontStyle: normal or italic