{ "id": "143507", "key": "AC-898", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2015-01-28T01:25:16.000+0000", "created": "2015-01-26T04:46:32.000+0000", "labels": [ "font", "fontfamily" ], "versions": [], "issuelinks": [], "assignee": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "updated": "2016-03-08T07:37:12.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "When trying to use a custom font in a standard non-Alloy project, it does not work on iOS when building with the 3.5.0 SDK. Switching to 3.4.1 makes it work without any changes to the code or project structure. On 3.5.0, the custom font works on Android but not iOS.\r\n\r\nTested on iOS simulator targeting iOS 8.1.", "attachment": [], "flagged": false, "summary": "Custom fonts not working on iOS with Titanium SDK 3.5.0", "creator": { "name": "dfoxinator", "key": "dfoxinator", "displayName": "David Fox", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dfoxinator", "key": "dfoxinator", "displayName": "David Fox", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS", "comment": { "comments": [ { "id": "340545", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Hi,\r\n\r\nPlease provide the simple test case to reproduce your problem. That will be really helpful to address the issue.\r\nThanks.\r\n\r\nRegards,\r\nShuo", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2015-01-26T07:25:48.000+0000", "updated": "2015-01-26T07:25:48.000+0000" }, { "id": "340894", "author": { "name": "dfoxinator", "key": "dfoxinator", "displayName": "David Fox", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Shuo,\r\n\r\nIn producing the test case, I've narrowed down the scope of the issue significantly. I don't think it is due to 3.5.0, but rather just when you add the font. Note: I'm using the latest version of Titanium Studio.\r\n\r\nThe issue only occurs if you add the font after you've already created a build. For example, if I created a new project, add the custom font in, and then launch in the simulator, the custom font works fine.\r\n\r\nHowever, if I create a new project, test it in the simulator, go back and add a custom font in, and re-test, then the font does not work. But, if I delete the build folder and re-launch in the simulator, the font shows up.\r\n\r\nHere is a sample project that I think should show the issue:https://www.dropbox.com/s/as7sh1p59qicp2q/CustomFontsBroken.zip?dl=0\r\n\r\nI left the build folder in there because I think it needs to be there for it to happen. If you launch the project and don't see the comic font in the simulator, then delete the build folder, re-launch, and it should show up now.\r\n\r\nIf the custom font is showing up when you launch the project, then delete the font, delete the build directory, and re-launch the simulator. Then stop the simulator, add the font back in, re-launch the simulator, and the custom font will not show up.\r\n\r\nPlease let me know if you have any questions.\r\n\r\nRegards,\r\n~David", "updateAuthor": { "name": "dfoxinator", "key": "dfoxinator", "displayName": "David Fox", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-28T01:11:04.000+0000", "updated": "2015-01-28T01:11:04.000+0000" }, { "id": "340896", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "HI,\r\n\r\nThis is expect behave in Titanium as build folder will impart the whole project. If you make some change which may related to build folder, we will suggest you always clean the project before the next build and run. \r\n\r\nRegards,\r\nShuo", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2015-01-28T01:17:15.000+0000", "updated": "2015-01-28T01:17:15.000+0000" }, { "id": "340897", "author": { "name": "dfoxinator", "key": "dfoxinator", "displayName": "David Fox", "active": true, "timeZone": "America/Los_Angeles" }, "body": "OK, thanks. In that case, I think it would make sense to add that to the custom font documentation as a note. It's very confusing to newcomers otherwise as you can follow all the steps and still have it not work.", "updateAuthor": { "name": "dfoxinator", "key": "dfoxinator", "displayName": "David Fox", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-28T01:22:07.000+0000", "updated": "2015-01-28T01:22:07.000+0000" }, { "id": "340898", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "We will notice that to out doc team, thank you very much for you ticket.", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2015-01-28T01:24:59.000+0000", "updated": "2015-01-28T01:24:59.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }