Webfonts not working with Node-Webkit

0 favourites
  • 4 posts
From the Asset Store
Node Downloader is a plugin for download file for Construct 3 and construct 2 game engine
  • Having some issues with loading webfonts via node-webkit, in an exported .exe file.

    Works absolutely fine in the browser though. Another oddity, it displays a comic sans font in the exe...

    Nowhere in the project have I picked a comic sans font for the text object, it's always set to arial by default. Anyone else have this issue? Or know how to fix it?

    Thanks guys...

  • Yikes, comic sans is the last font you would ever want to use :)

    I actually was trying fonts with node-webkit for the first time today to see if I could work it out, and it it worked perfectly. Was cool to see the font displayed in the layout in C2 as well. After following this tute it worked without a hitch:

    scirra.com/tutorials/237/how-to-use-your-own-web-fonts

    Maybe it is the font that you used? Some fonts may be more problematic than others? I just changed my .ttf to a .woff via Font Squirrel using the visitor1 font from Dafont.com:

    dafont.com/search.php

    you could always try this font as test and then go back to your original font.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Replacing all your fonts with comic sans is a royal insult. What did you do to your computer to make it hate you so <img src="smileys/smiley36.gif" border="0" align="middle">

    Seriously though, could it be related to this issue?

  • Thanks guys.

    I managed to fix the issue. I was loading the font in each layout instead of right at the start of the game. Not really sure why that would cause problems but for whatever reason it did.

    Everything seems okey dokey now. Thanks for the help though.

    And yeah, my computer and I are going to have to have a little "chat" soon. I think one possibility why it chose comic sans is because I was using a "comic" book kind of webfont. Maybe that was it.

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