Wrong size font

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
msilvestro
Prole
Posts: 29
Joined: Tue Feb 25, 2014 11:15 pm
Location: Italy
Contact:

Wrong size font

Post by msilvestro »

Screenshot (15).png
Screenshot (15).png (103.37 KiB) Viewed 2888 times
As you see above, this font is not scaled correctly. I can't understand, since at size 12 is perfectly pixelated, but at 24 (it's a power of 2, I suppose that should be ok) it is displayed wrong. All you see is all the code I got, the love file is also attached.

What can I do? Why this problem? Also, I tried changing filter but it apparently didn't changed anything. In the image there is also a comparison of what the default Windows font viewer shows.

P.S. It seems like LOVE can't use fon files as fonts... Is it correct?
Attachments
font.love
(72.43 KiB) Downloaded 127 times
User avatar
BOT-Brad
Citizen
Posts: 87
Joined: Tue Dec 02, 2014 2:17 pm
Location: England

Re: Wrong size font

Post by BOT-Brad »

It seems the correct display size for that specific font is actually 13pt, 26pt, 39pt, etc...

Try 13pt and 26pt and they display correctly.
Follow me on GitHub! | Send me a friend request on PSN!
User avatar
msilvestro
Prole
Posts: 29
Joined: Tue Feb 25, 2014 11:15 pm
Location: Italy
Contact:

Re: Wrong size font

Post by msilvestro »

BOT-Brad wrote:It seems the correct display size for that specific font is actually 13pt, 26pt, 39pt, etc...

Try 13pt and 26pt and they display correctly.
Oh yes, this is working! Sorry, it was probably a dumb question... I should have tried!
Just curious, how did you noticed that?
User avatar
BOT-Brad
Citizen
Posts: 87
Joined: Tue Dec 02, 2014 2:17 pm
Location: England

Re: Wrong size font

Post by BOT-Brad »

msilvestro wrote:
BOT-Brad wrote:It seems the correct display size for that specific font is actually 13pt, 26pt, 39pt, etc...

Try 13pt and 26pt and they display correctly.
Oh yes, this is working! Sorry, it was probably a dumb question... I should have tried!
Just curious, how did you noticed that?
No problem. It's a pretty common issue when working with bitmap/pixel fonts, sometimes you just have to increase/decrease the size of the font if it isn't looking right.
Follow me on GitHub! | Send me a friend request on PSN!
User avatar
msilvestro
Prole
Posts: 29
Joined: Tue Feb 25, 2014 11:15 pm
Location: Italy
Contact:

Re: Wrong size font

Post by msilvestro »

BOT-Brad wrote:
msilvestro wrote:
BOT-Brad wrote:It seems the correct display size for that specific font is actually 13pt, 26pt, 39pt, etc...

Try 13pt and 26pt and they display correctly.
Oh yes, this is working! Sorry, it was probably a dumb question... I should have tried!
Just curious, how did you noticed that?
No problem. It's a pretty common issue when working with bitmap/pixel fonts, sometimes you just have to increase/decrease the size of the font if it isn't looking right.
Well, thank you very much! I'll be more careful!
Post Reply

Who is online

Users browsing this forum: No registered users and 35 guests