{ "id": "116371", "key": "TIMOB-14351", "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": null, "resolutiondate": null, "created": "2013-06-24T09:49:01.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:04:11.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h2. Problem description\r\nWhen using a TTC (TrueType Collection) file on Android, only the regular font seems to be taken in account. Applying a 'bold' effect on the font does not use the 'bold' variant inside the file. The same works fine on iOS.\r\n\r\nh2. Steps to reproduce\r\n1. Need a TTC font that contains both regular and bold\r\n2. create an Alloy app and configure it to support the custom font added\r\n3. Create the following index.xml\r\n{code}\r\n\r\n\t\r\n\t\t\r\n\t\t\r\n\r\n\t\r\n\r\n{code}\r\n\r\n4. Use the following index.tss:\r\n{code}\r\n\".container\": {\r\n\tbackgroundColor: \"white\"\r\n},\r\n\"#label[platform=ios]\": {\r\n\twidth: Ti.UI.SIZE,\r\n\theight: Ti.UI.SIZE,\r\n\tcolor: \"#000\",\r\n\tfont:{\r\n\t\tfontFamily: \"Gill Sans\",\r\n\t\tfontSize: \"30dp\",\r\n\t\tfontWeight: \"bold\"\r\n\t}\r\n},\r\n\"#label[platform=android]\": {\r\n\twidth: Ti.UI.SIZE,\r\n\theight: Ti.UI.SIZE,\r\n\tcolor: \"#000\",\r\n\tfont:{\r\n\t\tfontFamily: \"GillSans_1\",\r\n\t\tfontSize: '30dp'\r\n\t}\r\n},\r\n\"#regularLabel[platform=ios]\": {\r\n\twidth: Ti.UI.SIZE,\r\n\theight: Ti.UI.SIZE,\r\n\tcolor: \"#000\",\r\n\tfont:{\r\n\t\tfontFamily: \"Gill Sans\",\r\n\t\tfontSize: \"30dp\"\r\n\t}\r\n},\r\n\"#regularLabel[platform=android]\": {\r\n\twidth: Ti.UI.SIZE,\r\n\theight: Ti.UI.SIZE,\r\n\tcolor: \"#000\",\r\n\tfont:{\r\n\t\tfontFamily: \"GillSans_0\",\r\n\t\tfontSize: '30dp'\r\n\t}\r\n}\r\n{code}\r\n5. Run the app on both platforms\r\n", "attachment": [ { "id": "45989", "filename": "device-2014-02-18-125026.png", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2014-02-18T07:07:13.000+0000", "size": 17548, "mimeType": "image/png" }, { "id": "45990", "filename": "iOS Simulator Screen shot Feb 18, 2014 12.50.13 PM.png", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2014-02-18T07:07:13.000+0000", "size": 21932, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: TTC files not supported for custom fonts", "creator": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [], "maxResults": 4, "total": 4, "startAt": 0 } } }