Fonts in LOVE (VERY big problem)

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.
User avatar
Lafolie
Inner party member
Posts: 809
Joined: Tue Apr 05, 2011 2:59 pm
Location: SR388
Contact:

Re: Fonts in LOVE (VERY big problem)

Post by Lafolie »

Personally, I'd just take the performance hit and use True Type. That way you don't have to do anything extra when 0.8 is released either, provided the syntax is the same. I'd just hang in and wait it out.
Do you recognise when the world won't stop for you? Or when the days don't care what you've got to do? When the weight's too tough to lift up, what do you? Don't let them choose for you, that's on you.
User avatar
RPG
Party member
Posts: 157
Joined: Wed Mar 02, 2011 5:02 am
Location: Russia
Contact:

Re: Fonts in LOVE (VERY big problem)

Post by RPG »

I have already made ​​a good bitmap font and would like to use it. This is russian font.
Image

But to use it looks like I will have to patch LOVE.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Fonts in LOVE (VERY big problem)

Post by Robin »

kikito wrote:Why not just render the font as a bitmap with several resolutions? Or else, render it with the highest resolution used, and scale down (I assume this will give less visual artifacts than scaling up)
I didn't mention that for several reasons.
Lafolie wrote:Personally, I'd just take the performance hit and use True Type. That way you don't have to do anything extra when 0.8 is released either, provided the syntax is the same. I'd just hang in and wait it out.
This is one of them.
RPG wrote:I have already made ​​a good bitmap font and would like to use it.
That looks like hell to use. I think you'd need to specify the bounding box for each letter separately, if you want to use that as-is.
Help us help you: attach a .love.
User avatar
RPG
Party member
Posts: 157
Joined: Wed Mar 02, 2011 5:02 am
Location: Russia
Contact:

Re: Fonts in LOVE (VERY big problem)

Post by RPG »

Thit program generaes all rectangles coordinates. Look:
http://www.chadvernon.com/blog/resource ... map-fonts/
User avatar
Lafolie
Inner party member
Posts: 809
Joined: Tue Apr 05, 2011 2:59 pm
Location: SR388
Contact:

Re: Fonts in LOVE (VERY big problem)

Post by Lafolie »

There's also no space between the characters so you'd get a bit of bleed from the surrounding pixels, I think.
Do you recognise when the world won't stop for you? Or when the days don't care what you've got to do? When the weight's too tough to lift up, what do you? Don't let them choose for you, that's on you.
User avatar
RPG
Party member
Posts: 157
Joined: Wed Mar 02, 2011 5:02 am
Location: Russia
Contact:

Re: Fonts in LOVE (VERY big problem)

Post by RPG »

Maybe, but I dont think so. You can increase space between characters.
User avatar
Lafolie
Inner party member
Posts: 809
Joined: Tue Apr 05, 2011 2:59 pm
Location: SR388
Contact:

Re: Fonts in LOVE (VERY big problem)

Post by Lafolie »

It depends on the way everything is rendered I suppose. No idea if this phenomena occurs in Love. I'd leave some space in-between the characters just in case.
Do you recognise when the world won't stop for you? Or when the days don't care what you've got to do? When the weight's too tough to lift up, what do you? Don't let them choose for you, that's on you.
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: Fonts in LOVE (VERY big problem)

Post by BlackBulletIV »

In theory you shouldn't get any bleed if the coordinates are pixel perfect; that is unless for some strange reason half a pixel is used.
User avatar
Taehl
Dreaming in associative arrays
Posts: 1025
Joined: Mon Jan 11, 2010 5:07 am
Location: CA, USA
Contact:

Re: Fonts in LOVE (VERY big problem)

Post by Taehl »

If you scaled it whatsoever, the nearest neighbor scaling algorithm would kick in, causing bleed. Always give yourself a pixel of space on each side!
Earliest Love2D supporter who can't Love anymore. Let me disable pixel shaders if I don't use them, dammit!
Lenovo Thinkpad X60 Tablet, built like a tank. But not fancy enough for Love2D 0.10.0+.
User avatar
RPG
Party member
Posts: 157
Joined: Wed Mar 02, 2011 5:02 am
Location: Russia
Contact:

Re: Fonts in LOVE (VERY big problem)

Post by RPG »

Also I can't understand that:
Image
Why russian characters aren't in center on the button? This is NOT ttf font.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], dusoft, Google [Bot] and 7 guests