How Do I Cache Web Font Locally on WP8 device?

  • Hi all,

    My game uses web font for all of the text elements. When I run the game on Windows phone 8 device, the texts fall back to the default font in the system.

    I tried the sprite font plugin to display the web font, which seems to work, but a bit buggy and it is not being developed by the author anymore.

    I read somewhere that the font can be cached locally using appcache or something like that, but I'm not sure how to do it. Can someone points me to the right direction?

    Thanks!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • What I have done so far:

    • Added the font to the exported project. Import it (furore.woff) to the project in Visual Studio 2012, at the root folder, set its Build Action to Content.
    • Added this to the index.html file:

    <style>

    {

                 font-family: 'furoreregular';

                 src: url('/furore.woff') format('woff');

                 font-weight: normal;

                 font-style: normal;

           ??}

    </style>

    • Include the offline.appcache to the project, open it and add this: furore.woff to tell the app to cache the font.

    Nothing works so far. Any help?

    Ashley: Can you help me out?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)