Custom font

Get help using Construct 2

Post » Tue Sep 04, 2012 9:21 am

Hey guy, how can i use custom font ? i mean True type font (.ttf). I used the font called Pixelsix10.ttf, but when export to the scirra arcade or export to Cocoonjs the font don't work... It's auto fall back to the normal font (Arial), even i created the folder called "fonts" and put .ttf in that folder, then put the folder into a .Zip file i have export.

I only use text plugin, it's should work but it's not. So everyone know how to get it work please give me some advice. Thank a lot ! I need a pixel font for my retro style game.
B
50
S
12
G
7
Posts: 259
Reputation: 10,371

Post » Tue Sep 04, 2012 10:39 am

All is here!

I don't know the reason but we can't use .ttf fonts so we need to convert our .ttf fonts to .woff. There is a method in the URL I shared you!devMidgard2012-09-04 10:41:12
B
17
S
4
G
4
Posts: 104
Reputation: 3,950

Post » Tue Sep 04, 2012 1:57 pm

... Thank you, but it's still not work when i tested my game on cocoonjs launcher.

Ludei said that i need to creat a folder call "fonts" and put the .ttf, but it's still not work.farsmile902012-09-04 14:05:04
B
50
S
12
G
7
Posts: 259
Reputation: 10,371

Post » Tue Sep 04, 2012 2:50 pm

Ops, it's worked. :d, when i try to make .apk file, and install it into my device, the font worked :D.
B
50
S
12
G
7
Posts: 259
Reputation: 10,371

Post » Sun Jul 14, 2013 11:24 pm

Did you need to convert it.. or did it work as .ttf with cocoonjs?
And where should you create the folder?

B
9
S
4
G
1
Posts: 102
Reputation: 2,274

Post » Mon Jul 15, 2013 2:48 am

@WizLore I made the font work with me game, and i'll show you what i did.

1. You must work with the .ttf (true type font)
2. When exported your game to Cocoonjs, you will see a .Zip file.
3. Creat a folder called "fonts" and copy and paste your .ttf font into "fonts" folder.
4. After that, put your "fonts" folder into the .Zip file.

If it's not work, ask me here, i'm have another way to make it work.
B
50
S
12
G
7
Posts: 259
Reputation: 10,371

Post » Mon Jul 15, 2013 7:46 pm

Thanks for the little tutorial.. Unfortunately I can't make it work.

I make sure there are no caps in the font name as I've read in another post. But not working.. yet.
B
9
S
4
G
1
Posts: 102
Reputation: 2,274

Post » Mon Jul 15, 2013 8:29 pm

Hi @farsmile90 ,

How did you do please, I still can't make it work.

Thanks
B
14
S
4
G
2
Posts: 190
Reputation: 3,938

Post » Tue Jul 16, 2013 4:28 am

Ok @WizLore and @beufreecasse , make sure your font is .ttf font and:

Everytick >> YourTextobject >> set font face >> EnterYourCorrectFontName >>stylenormal     DONE.

And finish all the 2,3,4 step as i said above.

Hope it's work !
B
50
S
12
G
7
Posts: 259
Reputation: 10,371

Post » Tue Jul 16, 2013 7:39 am

Thank you! I've found why it didn't work.
In fact if you use at the same time the set Font Size method the custom Font will not be loaded on CocoonJs.
I hope it will help people!
B
14
S
4
G
2
Posts: 190
Reputation: 3,938

Next

Return to How do I....?

Who is online

Users browsing this forum: Khamsou and 19 guests