newbe Q: using font in games

Get help using Construct 2

Post » Sat Dec 29, 2012 10:26 pm

is there a easy (resource efficient) way of using custom fonts in our games? can the fonts be "embedded" in the game and used easily with a "font plugin" or something that lets you print any string on screen with the font you've saved as your custom-game-font?
B
99
S
26
G
8
Posts: 120
Reputation: 10,221

Post » Sat Dec 29, 2012 10:34 pm

You could use textboxes and selected the custom font. You can select every font, which is installed on your computer.
B
8
S
2
Posts: 110
Reputation: 1,463

Post » Sat Dec 29, 2012 10:37 pm

Not a good idea ... the font won't be displayed if the user doesn't has it installed on his PC ... try the spritefont plugin !
B
36
S
16
G
16
Posts: 2,223
Reputation: 16,646

Post » Sat Dec 29, 2012 10:53 pm

Edit: Okay, thanks sqiddster.Astrosus2012-12-29 22:58:23
B
8
S
2
Posts: 110
Reputation: 1,463

Post » Sat Dec 29, 2012 10:56 pm

OK, firstly, if a user doesn't have a font, it won't work. Luckily you DO NOT need to resort to spritefont, however. There's a good tutorial here:

http://www.scirra.com/tutorials/237/how-to-use-your-own-web-fonts/page-1

That has all you need to know.
B
92
S
30
G
24
Posts: 3,189
Reputation: 32,570

Post » Sun Dec 30, 2012 12:24 am

I would add using web fonts in the text object to sqiddster already linked tutorial, and that's about what you need indeed.
New to Construct ? Where to start



Image Image

Image Image



Please attach a capx to any help request or bug report !
Moderator
B
262
S
93
G
55
Posts: 7,146
Reputation: 67,061

Post » Sun Dec 30, 2012 1:52 am

would "web fonts" be available to everyone, on any platform (including games on android/iphone/etc). i want to use a custom font that would be "part of the game" and available to anyone that wants to play the game... and wasnt sure what was the easiest, most efficient way of doing it. is it too much "trouble" to do such a thing; shall i use "web fonts" instead?
B
99
S
26
G
8
Posts: 120
Reputation: 10,221


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 8 guests