Reputation: 2185
It seems font-family css change wont work with Apache Cordova/phonegap in Android. But normal browser have no problems with this, any work around? I'm totally out of solution already.
var y = "Comic Sans MS";
$(function () {
$("#changecss").click(function () {
$('#header').css("font-family", y );
});
});
Upvotes: 1
Views: 1255
Reputation: 23273
If I am not mistaken there are only 3 fonts available on Android by default. If you want to include a different font it needs to be a TrueType font and you'll have to reference the font file yourself.
http://www.brianhadaway.com/font-face-declarations-on-android-devices/
Upvotes: 2