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
77
S
17
G
3
Posts: 109
Reputation: 6,247

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
35
S
16
G
16
Posts: 2,222
Reputation: 16,589

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
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

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
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

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
77
S
17
G
3
Posts: 109
Reputation: 6,247


Return to How do I....?

Who is online

Users browsing this forum: Kagubro and 20 guests