{ "id": "63399", "key": "TIMOB-2767", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2013-07-31T23:23:31.000+0000", "created": "2011-04-15T03:28:59.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [], "versions": [], "issuelinks": [ { "id": "14408", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "84117", "key": "TIDOC-127", "fields": { "summary": "APIDoc: TextField, TextArea objects missing font property", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-16T21:14:43.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}
Just noticed this when I was attempting to make a zombie Ti.js\nfile for my auto-completion hack in NetBeans using the api.json\nfile for 1.5.1
\nA number of Ti.UI.XXXX components that have text metrics\n(button, label, etc.) now have properties like \"font-family\" and\n\"font-size\" in addition to the original \"font\" property. Problem is\nthat the \"-\" in the property name is malformed Javascript and blows\nup both the JSLint pass during compilation (which only gives a\nwarning) and then makes an app that crashes on the first instance\nof such.
\nShouldn't these be JS friendly camel-cased, like fontFamily,\nfontWeight, fontStyle, etc.?
\nThnx,
\nEtienne
Do we even support these properties? We should probably remove\nthem in favor of font
and font.size
\netc.
The bug here is probably (?) that the documentation is wrong.\nTake a look at the documentation for label, for instance: \nhttp://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI....
\nIt claims to have a property like \"font-weight\", but AFAIK it\ndoesn't? The font weight is set by setting the font property like\nthis:
\n\n font: { fontWeight: 'bold'}
\n
\nI.e.
\n\nTi.UI.createLabel({ text: 'foobar', height: 'auto',\n width: 'auto', font: { fontWeight: 'bold'} })
\n
\nNot only does Label not seem to have the property font-weight,\nbut when setting the font property it's fontWeight.