Why are the sprite-font not working properly

Just started using Construct 2? Post your questions here

Post » Tue Oct 27, 2015 10:47 am

I am trying to use a sprite font in a game I'm working on so as the text position matches in all browsers. The issue I am having is that for some reason, instead of displaying the correct letters, random letters are being displayed. I used "give your font mono" to create the font. https://www.scirra.com/forum/viewtopic.php?t=86546&start=0

What can I do to fix this issue?
Here is the link :
https://www.dropbox.com/s/ht46zw6hgg65ima/unlockit.capx?dl=0
B
5
Posts: 36
Reputation: 301

Post » Tue Oct 27, 2015 11:14 am

@Minjaware

Sprite Font 'Character width' property incorrect.

Set to 18 and it shows.

It also looks like your Character Set doesn't match your Sprite Font.

Your sprite font is 256 px wide, but only has 14 characters horizontally, which means that each character would need to be 18.28571428.... px wide.

You should ensure that - preferably - there should be 16 equally spaced characters horizontally, then the default width of 16 would be correct.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
86
Posts: 5,414
Reputation: 59,514

Post » Tue Oct 27, 2015 12:15 pm

Ok thanks :)
B
5
Posts: 36
Reputation: 301


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 3 guests