{ "id": "112436", "key": "TIMOB-13720", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-05-20T22:00:23.000+0000", "created": "2013-04-08T15:18:42.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "documentation", "regression" ], "versions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [ { "id": "28922", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "114365", "key": "TIMOB-13859", "fields": { "summary": "CLI: Splash screen is not showing up in simulator", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-21T19:06:05.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": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "description": "*Problem description*\r\nIf you have a /Resources/fonts/ directory with custom fonts in it, and define those fonts in tiapp.xml 's new directive, the fonts directory is not copied over to the build.\r\n\r\n*Test case*\r\n{code:xml}\r\n \r\n 4.3\r\n \r\n \r\n UIStatusBarStyle\r\n UIStatusBarStyleBlackOpaque\r\n UIAppFonts\r\n \r\n /fonts/MyFont_1.otf\r\n /fonts/MyFont_2.ttf\r\n \r\n \r\n \r\n \r\n{code}\r\n\r\n*Workaround*\r\nIf you copy the fonts/ directory to /platform/iphone/ and /platform/android/ they are included in the build.", "attachment": [], "flagged": false, "summary": "CLI: iOS: /Resources/fonts/ directory is ignored with new tiapp.xml directive", "creator": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "environment": "Ti SDK 3.x\r\niOS 6", "comment": { "comments": [ { "id": "249425", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Just some thoughts if you're around before we test this... So if you *don't* define those fonts with UIAppFonts, the Resources/fonts/ directory is copied to the build as expected? I'd think this is expected behavior anyway, since the directive is platform specific, so any folders it references will be platform specific. I can see the need for a global fonts folder though.\n\nYou also mention the Android directory - does it not copy it on Android either?", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-29T20:49:23.000+0000", "updated": "2013-04-29T20:49:23.000+0000" }, { "id": "249429", "author": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "body": "According to the docs ([http://docs.appcelerator.com/titanium/latest/#!/guide/Custom_Fonts]), you need a custom info.plist... I would have assumed that using the new directive would supersede that. If the new expected behavior is to not do anything other than have a \"fonts\" directory, the docs should say this (and this ticket should be a Docs issue).\n\nI'm afraid I don't have my project up at the moment, so I can't provide quick answers to your questions.", "updateAuthor": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "created": "2013-04-29T20:58:52.000+0000", "updated": "2013-04-29T20:58:52.000+0000" }, { "id": "249448", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm 99% sure it's expected behavior that you should include the fonts directory in the /iphone directory anyway. Do you have any problems with this? About the docs... So you'd like the docs to be updated to describe adding fonts with the new directive (and of course cover the fact that the fonts directory should be included in the platform specific folders)?", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-29T21:48:19.000+0000", "updated": "2013-04-29T21:48:19.000+0000" }, { "id": "249449", "author": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "body": "Well, the bottom line is that we need accurate instructions on how to use custom fonts, regardless of what those instructions are. You've now mentioned a second \"expected\", yet undocumented behavior... the need to put fonts in the /iphone directory.\r\n\r\n[Using the custom font|http://docs.appcelerator.com/titanium/latest/#!/guide/Custom_Fonts-section-29004935_CustomFonts-Usingthecustomfont]:\r\n\r\n{quote}\r\n2. Copy the TTF/OTF file to the Resources/fonts/ directory.\r\nIf you want to use different fonts on iOS than Android, you can copy those files to Resources/iphone/fonts and Resources/android/fonts instead.\r\n{quote}\r\n\r\nSo, if the documentation is all wrong, then it needs to get fixed in 3.1.1. If there's an actual Ti SDK bug, well, ditto.", "updateAuthor": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "created": "2013-04-29T21:53:16.000+0000", "updated": "2013-04-29T21:54:04.000+0000" }, { "id": "249468", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Ah I see. I'll get our team to look at it from the platform side first. Thanks.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-29T22:21:54.000+0000", "updated": "2013-04-29T22:21:54.000+0000" }, { "id": "252928", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "This has been fixed by TIMOB-13859. In TIMOB-13859, there was a bug with files not being symlinked properly, some files being copied twice, and some files not copied at all. Turns out that the fix for TIMOB-13859 also fixes this ticket. :)\r\n\r\nTIMOB-13859 was merged into master and 3_1_X and will be available in 3.1.1.GA.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-05-20T21:50:13.000+0000", "updated": "2013-05-20T21:50:13.000+0000" }, { "id": "414335", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T19:06:05.000+0000", "updated": "2017-03-21T19:06:05.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }