{ "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

\n

A 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.

\n

Shouldn't these be JS friendly camel-cased, like fontFamily,\nfontWeight, fontStyle, etc.?

\n

Thnx,
\nEtienne

{html}", "attachment": [], "flagged": false, "summary": "Titanium.UI.XXX components with font-xxxx properties fail JSLint/crash", "creator": { "name": "jean-etiennelavallee", "key": "jean-etiennelavallee", "displayName": "Jean-Etienne LaVallee", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jean-etiennelavallee", "key": "jean-etiennelavallee", "displayName": "Jean-Etienne LaVallee", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "129364", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Do we even support these properties? We should probably remove\nthem in favor of font and font.size\netc.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:29:00.000+0000", "updated": "2011-04-15T03:29:00.000+0000" }, { "id": "129365", "author": { "name": "vetler(atgmail)", "key": "vetler(atgmail)", "displayName": "vetler (at gmail)", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

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....

\n

It 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
\n

I.e.

\n
\nTi.UI.createLabel({ text: 'foobar', height: 'auto',\n         width: 'auto', font: { fontWeight: 'bold'} })\n
\n

Not only does Label not seem to have the property font-weight,\nbut when setting the font property it's fontWeight.

{html}", "updateAuthor": { "name": "vetler(atgmail)", "key": "vetler(atgmail)", "displayName": "vetler (at gmail)", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:29:01.000+0000", "updated": "2011-04-15T03:29:01.000+0000" }, { "id": "177727", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "This can probably be closed.", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-30T16:23:50.000+0000", "updated": "2011-12-30T16:23:50.000+0000" }, { "id": "264318", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "We do not support \"font-size\", \"font-family\", etc via the JavaScript API. We do support these in .jss files, but jss support is undocumented.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-07-31T23:23:31.000+0000", "updated": "2013-07-31T23:23:31.000+0000" }, { "id": "413093", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue won't fix.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-16T21:14:43.000+0000", "updated": "2017-03-16T21:14:43.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }