Import font into the project

0 favourites
  • 10 posts
From the Asset Store
Creepy Sprite Font suitable font for your Dark/Horror/Halloween games.
  • Hello everyone,

    I've been trying to import a font into my capx file so that when I upload the game on facebook or make exe file the font would be set from the game itself (and not Windows fonts or webfonts hosted somewhere).

    I am not sure whether this is possible or not, according to this tutorial: construct.net/en it should be. But maybe I misunderstood it. I set up my game according to this tutorial and the font show ok as long as I have the file in my Windows Fonts. If I remove it from there or try it from another computer which doesn't have it, it shows the default font instead of the one I set.

    Can someone please tell me if it is possible to NOT be depended on what's in the windows fonts folder? Also the hosted webfont is not a good option either since if I make an exe file and want to play offline, it still won't show.

    thanks in advance!

  • The only solution right now is to make the font a sprite , That's what I do

  • I thought all you had to do was create a sub folder in your project called "fonts" and stick your TTF font in there for it to reference properly.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • yeah, I thought about making it a sprite, but the problem is that it's a counter type. One counts time another counts points (in 1000s) so you can imagine that sprite option is not feasible here. All the rest of writings I have are in sprite for that particular reason but these counters are different story.

    In the tutorial I mentioned it says to import the .woff font and css file into "files" directory. Can you please elaborate on your solution justifun? or maybe post an example capx?

  • Try The SpriteFont Plugin !

    In the plugin section ...

  • I followed the tutorial and it worked perfectly. Even easier is to use a font provided by google: http://www.google.com/webfonts

    I will look like this: http://di/m3qm

  • I had the same issue, but managed to event a counter system using sprites. Not hard at all really. Here's a capture of it.

    dropbox.com/s/ss4hp0ftdgmpv0m/scoresprite.PNG

    I tried the sprite font plugin, but it didn't work with CocoonJS.

  • Thanks for the picture Tobye, It looks easier than I imagined but it still would be wonderful if the solution I'm asking for existed

    7Soul, you mean even if you take the font out of your windows FONTS folder and use the css/font import solution it still shows up? have you tried it this way? With me, the solution provided in that tutorial works only in case I have the font in my windows FONTS folder

  • I tried the sprite font plugin, but it didn't work with CocoonJS.

    R0J0hound made a nice .capx example of how to implement sprite font into your games without the need for a plugin here:

    http://www.scirra.com/forum/suggestionsprite-font_topic44315_post277605.html#277605

    Iv used this method, and it works quite well with CocoonJS.

  • Wink thanks mate! This should come in very handy.

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