Hello,
I am new to this forum.
I am not able to load my custom fonts in ionic application for android.
I checked for the solution here but with no success : Fonts in ionic
I tried like this below :
I pasted my “Custom.ttf” file inside : “www/lib/fonts/*” like “www/lib/fonts/Custom.ttf”.
Then I modified “ionic.css” and “ionic.min.css” file to change font face.
Ionic. css
@font-face {
font-family: “Ionicons”;
src: url(“…/fonts/ionicons.eot?v=1.5.2”);
src: url(“…/fonts/ionicons.eot?v=1.5.2#iefix”) format(“embedded-opentype”), url(“…/fonts/Custom.ttf”) format(“truetype”), url(“…/fonts/ionicons.woff?v=1.5.2”) format(“woff”), url(“…/fonts/ionicons.svg?v=1.5.2#Ionicons”) format(“svg”);
font-weight: normal;
font-style: normal; }
Ionic.min.css
I removed the default font url and replaced it with following :
url(…/fonts/Custom.ttf) format(“truetype”)
Note : I need to support Gujarati font in my application.
Implementing the above code does not show any gujarati font and even I am not able to view icons.
Any help will be appreciated.
Thanks.