syarul
syarul

Reputation: 2185

font-family change on cordova apache

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

Answers (1)

Simon MacDonald
Simon MacDonald

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

Related Questions