{ "id": "82431", "key": "TIMOB-6055", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-06-07T20:41:32.000+0000", "created": "2011-11-07T14:09:17.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "parity" ], "versions": [ { "id": "12570", "name": "Release 1.7.5", "archived": true, "released": true, "releaseDate": "2011-11-02" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-07T20:41:32.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": "On Android, the fontFamily can use the generic specifiers 'serif', 'sans-serif', or 'monospace' to select the default system serif, sans-serif, or monospaced font. These also work in CSS, so web developers are used to using them.\r\n\r\nThe 'monospace' selector is implemented on iOS, and the 'sans-serif' selector works by accident (since the default font is sans-serif). However, 'serif' is not recognized. Compare the results of the following code snippet on iOS and Android:\r\n\r\n{code}\r\nfunction makeLabel(labelText, labelFont) \r\n{\r\n\treturn Titanium.UI.createLabel({\r\n\ttop: 20,\r\n\ttext:labelText,\r\n\tfont:labelFont,\r\n\twidth:'auto',\r\n\theight:'auto'\r\n\t});\r\n}\r\n\r\nwin2.add(makeLabel('Sans-Serif', { fontFamily:'sans-serif', fontSize: 30} ));\r\nwin2.add(makeLabel('Serif', { fontFamily:'serif', fontSize: 30} ));\r\nwin2.add(makeLabel('Monospace', { fontFamily:'monospace', fontSize:30} ));\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Serif generic font selector not supported on iOS", "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": "Using 1.8.0 build from 11/02.", "comment": { "comments": [ { "id": "421217", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to time passed and lack of progress in the past 5 years.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-07T20:41:32.000+0000", "updated": "2017-06-07T20:41:32.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }