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
113
S
31
G
8
Posts: 121
Reputation: 11,073

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
38
S
16
G
17
Posts: 2,230
Reputation: 17,220

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,191
Reputation: 32,584

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
268
S
96
G
67
Posts: 7,219
Reputation: 73,729

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
113
S
31
G
8
Posts: 121
Reputation: 11,073


Return to How do I....?

Who is online

Users browsing this forum: hielo777, keeno79 and 10 guests