@yellingag wrote:
I have been trying to add Myanmar language font (which is not supported by android) in my app. As I see from the internet, the only way to add custom font is using @font-face from css. I tried to run in different android version. The font shows correctly in Android Lollipop(5.0). But versions lower than Lollipop doesn't work. As it is showing rectangular boxes as image attached below.
Instead it should show something like below.
There is no error shown during my runtime also. The following is my code from css file. I put the font files in my www/lib/fonts folder so the path should be correct also.@font-face { font-family: 'myanmar3regular'; src: url('../lib/ionic/fonts/mm3-multi-os-webfont.eot'); src: url('../lib/ionic/fonts/mm3-multi-os-webfont.eot?#iefix') format('embedded-opentype'), url('../lib/ionic/fonts/mm3-multi-os-webfont.woff2') format('woff2'), url('../lib/ionic/fonts/mm3-multi-os-webfont.woff') format('woff'), url('../lib/ionic/fonts/mm3-multi-os-webfont.ttf') format('truetype'), url('../lib/ionic/fonts/mm3-multi-os-webfont.svg#myanmar3regular') format('svg'); font-weight: normal; font-style: normal; } html *{ font-family: 'myanmar3regular'; }
I also uploaded my current project on dropbox. This is the link - https://www.dropbox.com/sh/w4nsqvbvks2t6qb/AADcDy0bxFwxyGjyan4dOMBMa?dl=0
Thanks. Your anwsers will be much appreciated.
Yelling
Posts: 1
Participants: 1