Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-501] add support for fontStyle:'italic' on Labels

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:53:18.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.3.0
ComponentsiOS
Labelsfont, ios, iphone
ReporterNolan Wright
AssigneeJeff Haynie
Created2011-04-15T02:30:24.000+0000
Updated2011-04-17T01:53:18.000+0000

Description

self-explanatory

Comments

  1. Jeff Haynie 2011-04-15

    iPhone font's don't have the concept of font weight (bold) or italics. It's all driven by the font face you choose.

    The way we compensate for this for bold is to simply cycle through all the fonts that match the font family passed looking for the first font that has bold in the font name (filtering out italics/oblique).

    I can do the same for italics.

    However, I suppose i'll need to allow for both bold and italics.

    One thing to note, is that if you ask for italics and their's not an italics (or bold) version of that font, it will simply return the first font in the font family specified.

  2. Jeff Haynie 2011-04-15

    (from [9ffc66304bff9a30d7b6bea67606e5b4580fc47b]) Closes #501: Fonts now support 'fontStyle:' flag, which takes 'italic' or 'normal'. Able to combine with 'fontWeight:'. http://github.com/appcelerator/titanium_mobile/commit/9ffc66304bff9a30d7b6bea67606e5b4580fc47b"> http://github.com/appcelerator/titanium_mobile/commit/9ffc66304bff9...

  3. Stephen Tramer 2011-04-15

    Brief comment: Users should be aware that Helvetica does not support 'bold italic', meaning that the (usual?) system default won't accept this. Code is there anyway.

JSON Source