{ "id": "154101", "key": "TIMOB-20189", "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": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-01-05T08:55:47.000+0000", "created": "2016-01-04T14:35:21.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2016-06-24T21:07:36.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": "On Android, a user had to manually specify `fontWeight` and `fontStyle` when they wanted to add only a `fontStyle` to an `AttributedString`.\r\n\r\nFor example:\r\n\r\nThis would do nothing on Android\r\n \r\n\t\r\n{code:javascript}\r\nTi.UI.createAttributedString({\r\n\ttext: \"Hello World\",\r\n\tattributes: [\r\n\t\t{\r\n\t\t\ttype: Ti.UI.ATTRIBUTE_FONT,\r\n\t\t\tvalue: { fontStyle: \"italic\" },\r\n\t\t\trange: [0, 5]\r\n\t\t}\r\n\t]\r\n})\r\n{code}\r\n\r\n\r\nA user would have to add a fontWeight for the text to be \"italic\"\r\n\r\n\r\n{code:javascript}\r\nTi.UI.createAttributedString({\r\n\ttext: \"Hello World\",\r\n\tattributes: [\r\n\t\t{\r\n\t\t\ttype: Ti.UI.ATTRIBUTE_FONT,\r\n\t\t\tvalue: { fontWeight: \"normal\", fontStyle: \"italic\" },\r\n\t\t\trange: [0, 5]\r\n\t\t}\r\n\t]\r\n})\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Updated AttributeProxy to allow fontStyle to be set without having fontWeight to be manually set.", "creator": { "name": "CollinPrice", "key": "collinprice", "displayName": "Collin Price", "active": true, "timeZone": "America/Toronto" }, "subtasks": [], "reporter": { "name": "CollinPrice", "key": "collinprice", "displayName": "Collin Price", "active": true, "timeZone": "America/Toronto" }, "environment": null, "closedSprints": [ { "id": 555, "state": "closed", "name": "2016 Sprint 1 SDK", "startDate": "2016-01-02T01:31:50.127Z", "endDate": "2016-01-16T01:31:00.000Z", "completeDate": "2016-01-18T00:52:43.848Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "373713", "author": { "name": "CollinPrice", "key": "collinprice", "displayName": "Collin Price", "active": true, "timeZone": "America/Toronto" }, "body": "I created a pull request but was asked to create a JIRA ticket for reference. \r\n\r\n[https://github.com/appcelerator/titanium_mobile/pull/7605|https://github.com/appcelerator/titanium_mobile/pull/7605]", "updateAuthor": { "name": "CollinPrice", "key": "collinprice", "displayName": "Collin Price", "active": true, "timeZone": "America/Toronto" }, "created": "2016-01-04T14:36:56.000+0000", "updated": "2016-01-04T14:36:56.000+0000" }, { "id": "373714", "author": { "name": "CollinPrice", "key": "collinprice", "displayName": "Collin Price", "active": true, "timeZone": "America/Toronto" }, "body": "This was an Android issue.", "updateAuthor": { "name": "CollinPrice", "key": "collinprice", "displayName": "Collin Price", "active": true, "timeZone": "America/Toronto" }, "created": "2016-01-04T14:46:03.000+0000", "updated": "2016-01-04T14:46:03.000+0000" }, { "id": "373774", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~hansknoechel] can you review the PR please?", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-01-05T02:54:23.000+0000", "updated": "2016-01-05T02:54:23.000+0000" }, { "id": "373791", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR *approved*, thank you [~CollinPrice]!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-01-05T08:55:22.000+0000", "updated": "2016-01-05T08:55:22.000+0000" }, { "id": "389057", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fixed.\r\n\r\n{{fontWeight}} is not needed for {{fontStyle}} to work.\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 4.7.0.201606150733\r\nTi SDK : 5.4.0.v20160617074028\r\nTi CLI : 5.0.9\r\nAlloy : 1.9.0\r\nMAC El Capitan : 10.11.4\r\nAppc NPM : 4.2.7-2\r\nAppc CLI : 5.4.0-18\r\nNode: 4.4.4\r\nNexus 6 - Android 6.0.1", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-06-24T21:07:28.000+0000", "updated": "2016-06-24T21:07:28.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }