Page 1 of 1

Wrong size font

Posted: Mon Oct 05, 2015 8:01 pm
by msilvestro
Screenshot (15).png
Screenshot (15).png (103.37 KiB) Viewed 2940 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?

Re: Wrong size font

Posted: Mon Oct 05, 2015 8:11 pm
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.

Re: Wrong size font

Posted: Mon Oct 05, 2015 8:22 pm
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?

Re: Wrong size font

Posted: Mon Oct 05, 2015 8:25 pm
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.

Re: Wrong size font

Posted: Mon Oct 05, 2015 8:34 pm
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!