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
131
S
40
G
10
Posts: 131
Reputation: 13,445

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
42
S
17
G
17
Posts: 2,247
Reputation: 17,461

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
31
G
24
Posts: 3,191
Reputation: 32,679

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
289
S
112
G
94
Posts: 7,333
Reputation: 69,293

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
131
S
40
G
10
Posts: 131
Reputation: 13,445


Return to How do I....?

Who is online

Users browsing this forum: AndreasR, David181, karthikavnair and 7 guests