{"action":"opened","issue":{"url":"https://api.github.com/repos/jsmarcus/Xamarin.Plugins/issues/36","repository_url":"https://api.github.com/repos/jsmarcus/Xamarin.Plugins","labels_url":"https://api.github.com/repos/jsmarcus/Xamarin.Plugins/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/jsmarcus/Xamarin.Plugins/issues/36/comments","events_url":"https://api.github.com/repos/jsmarcus/Xamarin.Plugins/issues/36/events","html_url":"https://github.com/jsmarcus/Xamarin.Plugins/issues/36","id":190581426,"number":36,"title":"extending fonts in xamarin.ios project","user":{"login":"umarmohammed","id":8583153,"avatar_url":"https://avatars.githubusercontent.com/u/8583153?v=3","gravatar_id":"","url":"https://api.github.com/users/umarmohammed","html_url":"https://github.com/umarmohammed","followers_url":"https://api.github.com/users/umarmohammed/followers","following_url":"https://api.github.com/users/umarmohammed/following{/other_user}","gists_url":"https://api.github.com/users/umarmohammed/gists{/gist_id}","starred_url":"https://api.github.com/users/umarmohammed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umarmohammed/subscriptions","organizations_url":"https://api.github.com/users/umarmohammed/orgs","repos_url":"https://api.github.com/users/umarmohammed/repos","events_url":"https://api.github.com/users/umarmohammed/events{/privacy}","received_events_url":"https://api.github.com/users/umarmohammed/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-20T20:29:23Z","updated_at":"2016-11-20T20:29:23Z","closed_at":null,"body":"I'm having problems extending the fonts in a xamarin.ios project. I have been able to do it in the android project. I'm not sure why its not working. The following describes the steps I used in the android and ios projects.\r\n\r\n**I've managed to extend the fonts in my xamarin android project using the following steps:**\r\n\r\nAdded my custom.ttf file into the Assets folder\r\n\r\nCreated a mapping between keys and special characters:\r\n\r\n`internal class CustomFontCollection\r\n    {\r\n        public static IList<IIcon> Icons { get; } = new List<IIcon>();\r\n\r\n        static CustomFontCollection()\r\n        {\r\n            Icons.Add(\"my-usercirc\", '\\ue800');\r\n            Icons.Add(\"my-feedcirc\", '\\ue801');\r\n            Icons.Add(\"my-bell-ocirc\", '\\ue802');\r\n            Icons.Add(\"my-calendar-ocirc\", '\\ue803');\r\n            Icons.Add(\"my-callcirc\", '\\ue804');\r\n            Icons.Add(\"my-smscirc\", '\\ue805');\r\n            Icons.Add(\"my-envelopecirc\", '\\ue806');\r\n        }\r\n    }`\r\n\r\nImplemented IIconModule\r\n\r\n`class CustomFontModule : IconModule\r\n    {\r\n        public CustomFontModule() : base(\"CustomFont\", \"CustomFont\", \"custom.ttf\", CustomFontCollection.Icons)\r\n        {\r\n        }\r\n    }`\r\n\r\nGive it to iconize with in OnCreate()\r\n\r\n` Plugin.Iconize.Iconize.With(new CustomFontModule());`\r\n\r\n**However I when I do this for the xamarin.ios project it just displays a \"?\" icon.  I tried the following in the xamarin.ios project:**\r\n\r\nCopied the custom.ttf into the Resources folder\r\n\r\nCreated a mapping and implemented IIconModule in the same way I did in the android project\r\n\r\nCall iconize with in FinishedLaunching()\r\n\r\nAdded the font in the info.plist\r\n\r\n`<key>UIAppFonts</key>\r\n    <array>\r\n      <string>iconize-fontawesome.ttf</string>\r\n      <string>custom.ttf</string>\r\n    </array>`\r\n\r\nSet fonts \"Build Action\" to \"BundleResource\" and the \"Copy to Output Directory\" to \"Copy always\"\r\n\r\n"}}
{"actor":{"display_login":"umarmohammed"}}