How Do I Cache Web Font Locally on WP8 device?

Get help using Construct 2

Post » Fri Mar 22, 2013 1:56 am

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!
B
12
S
4
G
1
Posts: 104
Reputation: 1,512

Post » Fri Mar 22, 2013 2:56 am

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-face {
             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?tipztv2013-03-22 03:04:47
B
12
S
4
G
1
Posts: 104
Reputation: 1,512


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 19 guests