Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-104] Support for fontSize and fontWeight

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:52:00.000+0000
Affected Version/sn/a
Fix Version/sRelease 0.7.0
ComponentsiOS
Labelsn/a
ReporterNolan Wright
AssigneeBlain Hamon
Created2011-04-15T02:23:42.000+0000
Updated2011-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'

Comments

  1. Blain Hamon 2011-04-15

    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

JSON Source