{ "id": "82428", "key": "TIMOB-6053", "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": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15272", "description": "2013 Sprint 04 API", "name": "2013 Sprint 04 API", "archived": true, "released": true, "releaseDate": "2013-02-25" }, { "id": "14814", "description": "2013 Sprint 04", "name": "2013 Sprint 04", "archived": true, "released": true, "releaseDate": "2013-02-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-02-12T19:32:26.000+0000", "created": "2011-11-07T13:36:29.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "module_label", "parity", "qe-testadded", "tbs-2.1.0" ], "versions": [ { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "issuelinks": [ { "id": "30793", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "118202", "key": "TIMOB-14796", "fields": { "summary": "iOS: fontStyle not supported on iOS", "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": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2013-08-09T17:13:48.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 iOS, the user can select an italic font by specifying a font object like:\r\n\r\n{code}\r\n{ fontSize: '16', fontStyle: 'italic' }\r\n{code}\r\n\r\nIn Android, there appears to be no way to select an italic font, even when using a family like DroidSerif which includes an italic face. Both:\r\n\r\n{code}\r\n{ fontFamily: 'DroidSerif', fontStyle: 'italic' }\r\n{code}\r\n\r\nAnd:\r\n\r\n{code}\r\n{ fontFamily: 'DroidSerif-Italic' }\r\n{code}\r\n\r\nFail to produce the desired results.\r\n\r\nThe following code snippet demonstrates the issue. The italic fonts show up as expected on iOS, but not on Android.\r\n\r\n{code}\r\nvar win1 = Ti.UI.createWindow({\r\n\tbackgroundColor:'white',\r\n\tlayout:'vertical'\r\n});\r\n\r\nfunction makeLabel(labelText, labelFont) \r\n{\r\n return Titanium.UI.createLabel({\r\n top: 20,\r\n text:labelText,\r\n font:labelFont,\r\n width:'auto',\r\n height:'auto'\r\n });\r\n}\r\n \r\nvar theTestFont = 'serif';\r\n \r\nwin1.add(makeLabel('Font normal normal', { fontFamily:theTestFont, fontWeight:'normal', fontStyle:'normal'}));\r\nwin1.add(makeLabel('Font bold normal', { fontFamily:theTestFont, fontWeight:'bold', fontStyle:'normal'}));\r\nwin1.add(makeLabel('Font normal italic', { fontFamily:theTestFont, fontWeight:'normal', fontStyle:'italic'}));\r\nwin1.add(makeLabel('Font bold italic', { fontFamily:theTestFont, fontWeight:'bold', fontStyle:'italic'}));\r\n\r\nwin1.open();\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: fontStyle not supported on Android", "creator": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "238174", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile/pull/3581", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-12T19:31:49.000+0000", "updated": "2013-02-12T19:31:49.000+0000" }, { "id": "239962", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Environment used for verification -\r\nTitanium SDK: 3.1.0.v20130226024607\r\nTitanium  Studio:3.0.2.201302141201\r\nDevice: Samsung GALAXY Note (2.3.6) ", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-27T06:06:49.000+0000", "updated": "2013-02-27T06:06:49.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }