{"action":"created","issue":{"url":"https://api.github.com/repos/NativeScript/NativeScript/issues/2055","repository_url":"https://api.github.com/repos/NativeScript/NativeScript","labels_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/2055/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/2055/comments","events_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/2055/events","html_url":"https://github.com/NativeScript/NativeScript/issues/2055","id":151884005,"number":2055,"title":"[v2.0.0] Font icons in nested components don't work on iOS","user":{"login":"firecube","id":137861,"avatar_url":"https://avatars.githubusercontent.com/u/137861?v=3","gravatar_id":"","url":"https://api.github.com/users/firecube","html_url":"https://github.com/firecube","followers_url":"https://api.github.com/users/firecube/followers","following_url":"https://api.github.com/users/firecube/following{/other_user}","gists_url":"https://api.github.com/users/firecube/gists{/gist_id}","starred_url":"https://api.github.com/users/firecube/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/firecube/subscriptions","organizations_url":"https://api.github.com/users/firecube/orgs","repos_url":"https://api.github.com/users/firecube/repos","events_url":"https://api.github.com/users/firecube/events{/privacy}","received_events_url":"https://api.github.com/users/firecube/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NativeScript/NativeScript/labels/iOS","name":"iOS","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-29T14:43:29Z","updated_at":"2016-05-05T08:35:18Z","closed_at":null,"body":"Hi,\r\n\r\nI have just upgraded an existing project to v2.  Font icons used in TextFields don't work in nested components on iOS and instead just show as a question mark.  They are fine like this on Android and they also work in iOS on top level pages.\r\n\r\nThanks, Simon\r\n"},"comment":{"url":"https://api.github.com/repos/NativeScript/NativeScript/issues/comments/217103370","html_url":"https://github.com/NativeScript/NativeScript/issues/2055#issuecomment-217103370","issue_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/2055","id":217103370,"user":{"login":"NickIliev","id":18008302,"avatar_url":"https://avatars.githubusercontent.com/u/18008302?v=3","gravatar_id":"","url":"https://api.github.com/users/NickIliev","html_url":"https://github.com/NickIliev","followers_url":"https://api.github.com/users/NickIliev/followers","following_url":"https://api.github.com/users/NickIliev/following{/other_user}","gists_url":"https://api.github.com/users/NickIliev/gists{/gist_id}","starred_url":"https://api.github.com/users/NickIliev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickIliev/subscriptions","organizations_url":"https://api.github.com/users/NickIliev/orgs","repos_url":"https://api.github.com/users/NickIliev/repos","events_url":"https://api.github.com/users/NickIliev/events{/privacy}","received_events_url":"https://api.github.com/users/NickIliev/received_events","type":"User","site_admin":false},"created_at":"2016-05-05T08:35:18Z","updated_at":"2016-05-05T08:35:18Z","body":"@firecube \r\n\r\nIt appeared that iOS api for using fonts is looking for the **_font name_** and not the **_font file name_** .\r\nIn order for your font to appear in iOS you need to reffer with its original font name.\r\nIn the example case I have posted above this means that the file should remain as published by the creators or exactly **IcoMoon-Free**\r\n\r\nYour code will work if you keep the original ffont name and change the css to the following code \r\n```\r\n.icon {\r\n   font-family: 'IcoMoon-Free';\r\n   font-size: 48;\r\n}\r\n```\r\n\r\nOf course that means that in order this font to appear in Android you also need to keep the original file name exactly as the font-name :  IcoMoon-Free.ttf\r\nThis way your icon fonts will work on both platforms."}}