Font not supported?

Discussion and feedback on Construct 2

Post » Sun Sep 25, 2011 8:37 am

I am trying to use a font I downloaded from the Internet in Construct 2, however a message comes up saying that the font is not supported, for technical reasons.

Will this be adjusted in future releases of Construct? Or do I have to resort to a spritefont? Is there anything else I can do?
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Sun Sep 25, 2011 12:17 pm

The text rendering library we use in the layout view only supports certain kinds of font. Sorry, there's not much we can do, it's not our code, so it probably won't change.

Don't forget if none of your visitors viewing your HTML5 game have that font installed, then they won't see the font! Their computer will pick another one instead.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,630

Post » Sun Sep 25, 2011 9:41 pm

I use Google Web Fonts myself. As far as I see, they'll be the web font standard soon enough.

They've already got over 200+ fonts and they're freely usable and downloadable.Ugotsta2011-09-25 21:42:08
B
126
S
7
G
4
Posts: 185
Reputation: 7,233

Post » Sun Sep 25, 2011 10:21 pm

Oh, that's a bit of a shame! Ah well, I guess I will have to go with a spritefont.

EDIT: 30 minutes later, I have NO idea how to get my font into spritefont form. Are there any tutorials or generators out there? (I know how to use spritefonts thanks to an example on this site, but i have no idea how to turn a .ttf into a spritefont to use.

EDIT 2: I found an OK font on the Google Web fonts however I also know of no way to integrate this into Construct. sqiddster2011-09-25 22:51:50
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Mon Sep 26, 2011 9:18 am

Hiya sqiddster,

To use a Google Font, you can simply download and install the font on your computer, then when exporting the file, just be sure to include the added bit of information that Google gives you for your <header> section.

I'm not totally sure, but I wouldn't think spritefonts would help in this case, as Construct would still have to be able to utilize that format somehow.
B
126
S
7
G
4
Posts: 185
Reputation: 7,233

Post » Mon Sep 26, 2011 5:12 pm

@Ugosta: Sprite fonts aren't a format - they're simply sprites with animation frames.

@sqiddster: Check out r0j0hound's example here: http://www.scirra.com/forum/suggestionsprite-font_topic44315.html?KW=

As for sprite fonts, you can rasterize them with a program like photoshop or paint.net (make text, save it as a png), then use my font splitter (http://www.scirra.com/forum/sprite-text-via-events-and-font-splitter-20_topic39752.html?KW=font+splitter ) to split the image into separate images, then import those images as an animation.Arima2011-09-26 17:13:20
Moderator
B
88
S
32
G
33
Posts: 3,005
Reputation: 27,432

Post » Mon Sep 26, 2011 7:49 pm

Thanks for that clarification Arima. I did think that was a format, a sprite based one. Glad to see that type of thin is possible, just sounds like quite a bit of work to use text in that case!
B
126
S
7
G
4
Posts: 185
Reputation: 7,233

Post » Tue Sep 27, 2011 12:25 pm

Umm, Ugotsa, When I download my Google Web font to my computer Constuct 2 gives me the exact same error message...
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Wed Sep 28, 2011 10:42 pm

I really need a response to this - My game suffers from a severe font lackage ;)
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Wed Sep 28, 2011 11:18 pm

I don't think you can use Google Web Fonts with Construct 2 yet. It's on our todo list. You'll have to make do with sprites, but I would recommend just picking a more ordinary font for the time being :-\ it's much simpler that way though.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,630

Next

Return to Construct 2 General

Who is online

Users browsing this forum: Aphrodite and 12 guests