About font formatting supported in C2

Discussion and feedback on Construct 2

Post » Fri May 10, 2013 3:51 am

Right now, i'm trying out different fonts. Some work. Some don't. Those that don't invoke C2 to yell out that it is not supported. So I looked around and saw that C2 uses an external library for font management.

So the thing is this. If I am to create my own font, What kind of format, type, attributes, etc. are required in order to allow C2 to render the font correctly?

Sure, the user will not have my font, so that has to be supplied somehow.
I got a game that you multiply, breath fire with two heads and brawl foes to oblivion with your clones: http://www.newgrounds.com/portal/view/660664 (use Chrome on Windows for best performance)

My sites:
http://twinblazar.deviantart.com
http://twinblazar.newgrounds.com
https://twitter.com/twinblazar
http://www.pixiv.net/member.php?id=15072448
B
24
S
9
G
11
Posts: 408
Reputation: 8,040

Post » Fri May 10, 2013 12:36 pm

Construct 2 only renders certain types of TTF fonts in the editor. Browsers basically won't render any fonts apart from web fonts, because you can't guarantee any users have your particular font installed unless you provide a link to a web font everyone can use. So you should only use web fonts.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Fri May 10, 2013 1:49 pm

I see...

On the other hand, what about Node-Webkit for desktop app? If I request the user to install the font first, then everything should be ok, no?

And still, I see that I can also do: https://www.scirra.com/tutorials/237/how-to-use-your-own-web-fonts but will this be applicable for Node-Webkit?
I got a game that you multiply, breath fire with two heads and brawl foes to oblivion with your clones: http://www.newgrounds.com/portal/view/660664 (use Chrome on Windows for best performance)

My sites:
http://twinblazar.deviantart.com
http://twinblazar.newgrounds.com
https://twitter.com/twinblazar
http://www.pixiv.net/member.php?id=15072448
B
24
S
9
G
11
Posts: 408
Reputation: 8,040

Post » Fri May 10, 2013 2:13 pm

What font are you using and what is it for?

For lots of dialogue, whilst fancy fonts may look good it's generally annoying for lots of text, Tahoma,Trebuchet MS and Veranda are all super safe, easy to read and look great; maybe they'll work better?

For a logo or seldom used text assets, have you considered just using a sprite in place of the font?
B
49
S
14
G
3
Posts: 540
Reputation: 5,611

Post » Fri May 10, 2013 2:31 pm

I was considering putting some retro style 8-bit text into the game, you see. Fortunately, there is a font called "Press Start 2P" at http://www.google.com/fonts/, but the thing is I also require some Japanese text in retro style as well. Foreign language, you see.
I got a game that you multiply, breath fire with two heads and brawl foes to oblivion with your clones: http://www.newgrounds.com/portal/view/660664 (use Chrome on Windows for best performance)

My sites:
http://twinblazar.deviantart.com
http://twinblazar.newgrounds.com
https://twitter.com/twinblazar
http://www.pixiv.net/member.php?id=15072448
B
24
S
9
G
11
Posts: 408
Reputation: 8,040

Post » Fri May 10, 2013 10:31 pm

There's a plugin that might work for you even though it's outdated, has a bug or two (you have to make the box size larger if you're using small resolution and scaling up), and since it's not a default C2 function not supported on the Scirra Arcade section of the website.

Spritefont Plugin

You just have to make your own font imageset, or find one you are allowed to use.

---

Although personally I think webfonts would be better as you can also use it on your website as well, but I don't know how to make them or convert raster fonts (sprite fonts) to them.

Edit: Your post inspired me to look into it again.
Found that FontStruct provides a web based interface for font creation, and allows pixel monospaced fonts.

It's also compatible with FontSquirrel Webfont Generator to convert it to a webfont

Edit2:
Fontsquirrel seems to be having issues with Fontstruct. I made a font and used Font2Web.com to convert it. I it came out pretty good.Thndr2013-05-11 03:23:32
B
15
S
4
G
4
Posts: 294
Reputation: 3,225


Return to Construct 2 General

Who is online

Users browsing this forum: rekjl and 10 guests