{ "id": "169520", "key": "TIMOB-25161", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": [ { "id": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-08-16T15:17:59.000+0000", "created": "2017-08-12T00:12:47.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "19870", "description": "", "name": "Release 6.1.2", "archived": false, "released": true, "releaseDate": "2017-08-03" } ], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2017-08-16T18:58:47.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h5. Description:\r\nIn native iOS development, there is a way to apply a *thin font style* to a label, see attached image from Xcode. How can this be achieved in Appcelerator alloy project?\r\n\r\nAs per the docs: https://docs.appcelerator.com/platform/latest/#!/api/Font\r\n\r\nThe only style available is \"italic\" or \"normal\", though in native it seems there are many other styles are available like \"thin\", \"ultra thin\" or \"light\" which are not there in Titanium.", "attachment": [ { "id": "63057", "filename": "Screen Shot 2017-08-11 at 5.13.35 PM.png", "author": { "name": "nmishra", "key": "nmishra", "displayName": "Neeraj Mishra", "active": true, "timeZone": "America/Phoenix" }, "created": "2017-08-12T00:13:56.000+0000", "size": 492529, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Expose \"thin\", \"light\", \"ultra-light\" and \"semi-bold\" font-weights in Titanium font-system", "creator": { "name": "nmishra", "key": "nmishra", "displayName": "Neeraj Mishra", "active": true, "timeZone": "America/Phoenix" }, "subtasks": [], "reporter": { "name": "nmishra", "key": "nmishra", "displayName": "Neeraj Mishra", "active": true, "timeZone": "America/Phoenix" }, "environment": "Operating System\r\n Name = Mac OS X\r\n Version = 10.12.6\r\n Architecture = 64bit\r\n # CPUs = 8\r\n Memory = 17179869184\r\n\r\nNode.js\r\n Node.js Version = 6.1.0\r\n npm Version = 3.8.6\r\n\r\nTitanium CLI\r\n CLI Version = 5.0.14\r\n\r\nTitanium SDK\r\n SDK Version = 6.1.2.GA\r\n", "comment": { "comments": [ { "id": "426581", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "We just exposed {{semibold}} in TIMOB-23114 and could add any other font-weight as well now (note: it's font-weight, not font-style in this context). We can expose it for 6.3.0 / 7.0.0. [~emerriman] for the exact release.\r\n\r\n*EDIT*: Changed title to {{iOS: Expose \"thin\" font-weight in Titanium font-system}}.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-08-12T09:58:46.000+0000", "updated": "2017-08-12T09:59:48.000+0000" }, { "id": "426587", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "I really do not like the solution, but it's the only way we can do it right now without rewriting the font-system. We should definitely consider refactoring the whole system in 7.0.0 if possible.\r\n\r\nPR (master): https://github.com/appcelerator/titanium_mobile/pull/9308\r\nPR (6_2_X): https://github.com/appcelerator/titanium_mobile/pull/9309\r\n\r\nTest-Case:\r\n{code:js}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : '#fff',\r\n layout: 'vertical'\r\n});\r\nvar label1a = Ti.UI.createLabel({\r\n text : 'This is a bold font',\r\n top: 40,\r\n left: 50,\r\n font: {\r\n fontWeight: 'bold',\r\n fontSize: 25\r\n }\r\n});\r\nvar label1b = Ti.UI.createLabel({\r\n text : 'This is a semibold font',\r\n top: 10,\r\n left: 50,\r\n font: {\r\n fontWeight: 'semibold',\r\n fontSize: 25\r\n }\r\n});\r\nvar label1c = Ti.UI.createLabel({\r\n text : 'This is a normal font',\r\n top: 10,\r\n left: 50,\r\n font: {\r\n fontSize: 25\r\n }\r\n});\r\nvar label2 = Ti.UI.createLabel({\r\n text : 'This is a thin font',\r\n left: 50,\r\n font: {\r\n fontWeight: 'thin',\r\n fontSize: 25\r\n },\r\n top: 10,\r\n});\r\nvar label3 = Ti.UI.createLabel({\r\n text : 'This is a light font',\r\n left: 50,\r\n font: {\r\n fontWeight: 'light',\r\n fontSize: 25\r\n },\r\n top: 10,\r\n});\r\nvar label4 = Ti.UI.createLabel({\r\n text : 'This is a ultra-light font',\r\n left: 50,\r\n font: {\r\n fontWeight: 'ultralight',\r\n fontSize: 25\r\n },\r\n top: 10,\r\n});\r\n \r\nwin.add([label1a,label1b,label1c,label2,label3,label4]);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-08-13T19:18:31.000+0000", "updated": "2017-08-13T19:21:29.000+0000" }, { "id": "426784", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.\r\nNew font weights are available and usable without issue.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-08-16T15:17:59.000+0000", "updated": "2017-08-16T15:17:59.000+0000" }, { "id": "426801", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified in builds SDK 6.2.0.v20170816090501 and 7.0.0.v20170816113226", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-08-16T18:58:47.000+0000", "updated": "2017-08-16T18:58:47.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }