Custom Persian And Arabic Fonts in Android 4.1.2 Phonegap (Cordova) not working
finally I overcome this issue on Persian And Arabic custom fonts,
Keep all the codes with @fontface
as same as it is,
Download this package http://averta.net/labs/fa/?p=10
From extracted archive, add bifon-1.1b.js
to your html and use this script
function onDeviceReady() {
$('#txt1').text(FarsiStyle.convert('سلام عليكم').split('').reverse().join('').split(' ').reverse().join(' '));
}
which txt1 is a div or span.
p.s Thanks to Mr. Morteza F. Shojaei
Fonts not getting applied on android device in ionic 3 app
Problem was with ionic-cli-3.9.2 which is not picking the fonts from assets/fonts so i moved the fonts to /assets. Then it started working very annoying.
Related Topics
Android - Nullpointerexception on Searchview in Action Bar
How to Use Custom Font with Webview
How to Fix "Unexpected Element <Queries> Found in <Manifest>" Error
Xamarin.Forms Listview: Set the Highlight Color of a Tapped Item
Monodroid: Error When Calling Constructor of Custom View - Twodscrollview
Could Not Find Com.Android.Tools.Build:Aapt2:3.2.0
Android Studio Fails to Debug with Error Org.Gradle.Process.Internal.Execexception
Gles10.Glgetintegerv Returns 0 in Lollipop Only
Android Firebase Dynamitemodule: Failed to Load Module Descriptor
Using Contextmenu with Listview in Android
Android Activity Ondestroy() Is Not Always Called and If Called Only Part of the Code Is Executed
Edittext: Disable Paste/Replace Menu Pop-Up on Text Selection Handler Click Event
How to Get an Android Wakelock to Work
React Native Android Fetch Failing on Connection to Local API
Android Automatic Horizontally Scrolling Textview
Fragment Onresume() & Onpause() Is Not Called on Backstack
What Is the Fastest Way to Scrape HTML Webpage in Android
How to Programmatically Add Buttons into Layout One by One in Several Lines