Love2D - Font Messed Up!

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Triplenox
Prole
Posts: 26
Joined: Fri Jul 13, 2012 5:48 pm

Love2D - Font Messed Up!

Post by Triplenox » Mon Oct 08, 2012 5:35 pm

Hey Guys, I think there is already a post out there for this, but I have no idea what to search for, my problem is that my font that i'm using (Harabra) is quite high quality on letters, then fuzzy/blurry on the other letters, I have no idea what to call this post, nor what this problem is called, here's a picture ;3 Any help is appreciated!

Image

Kind Regards,

-Triplenox

User avatar
Larsii30
Party member
Posts: 267
Joined: Sun Sep 11, 2011 9:36 am
Location: Germany

Re: Love2D - Font Messed Up!

Post by Larsii30 » Mon Oct 08, 2012 5:59 pm

Hmm.. Maybe it would be helpful if you gave us a link so we can test the font out.
I don't know about any problem with the font function, try changing the font size and watch the result ( i.e change size 18 to 22 )

Triplenox
Prole
Posts: 26
Joined: Fri Jul 13, 2012 5:48 pm

Re: Love2D - Font Messed Up!

Post by Triplenox » Mon Oct 08, 2012 6:09 pm

Larsii30 wrote:Hmm.. Maybe it would be helpful if you gave us a link so we can test the font out.
I don't know about any problem with the font function, try changing the font size and watch the result ( i.e change size 18 to 22 )
I have a variety of different font sizes, it goes 24, 36, 48, 62, 72, i'll test later, as i'm busy with school work atm ;3

User avatar
pk
Citizen
Posts: 67
Joined: Wed Dec 14, 2011 2:13 am
Location: Texas, United States
Contact:

Re: Love2D - Font Messed Up!

Post by pk » Mon Oct 08, 2012 6:12 pm

Most modern fonts are hinted for RGB subpixel rendering. LOVE however, uses simple grayscale antialiasing. Read more about different rendering strategies here.
ALL CREATURE WILL DIE AND ALL THE THINGS WILL BE BROKEN. THAT'S THE LAW OF SAMURAI.

User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: Love2D - Font Messed Up!

Post by kikito » Mon Oct 08, 2012 8:58 pm

Triplenox wrote:my problem is that my font that i'm using (Harabra) is quite high quality on letters, then fuzzy/blurry on the other letters
Image
I don't see anything obviously wrong on that picture. What letters do you consider "blurry"?
When I write def I mean function.

User avatar
Jasoco
Inner party member
Posts: 3653
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Love2D - Font Messed Up!

Post by Jasoco » Tue Oct 09, 2012 5:59 am

A) What OS are you on?

B) Please upload the .love so we can test it and take screenshots of what it looks like for us.

Triplenox
Prole
Posts: 26
Joined: Fri Jul 13, 2012 5:48 pm

Re: Love2D - Font Messed Up!

Post by Triplenox » Tue Oct 09, 2012 9:41 am

Jasoco wrote:A) What OS are you on?

B) Please upload the .love so we can test it and take screenshots of what it looks like for us.
It's sorta a game, so i'm not trusting anyone with the code D: I'm running Windows 7 64-Bit on an Intel Pentium P6100 processor. (I think, lol!)

Kind Regards,

-Triplenox

User avatar
micha
Inner party member
Posts: 1083
Joined: Wed Sep 26, 2012 5:13 pm

Re: Love2D - Font Messed Up!

Post by micha » Tue Oct 09, 2012 11:17 am

You can then post a minimal example that reproduces your font problem, without exposing your game code.

Triplenox
Prole
Posts: 26
Joined: Fri Jul 13, 2012 5:48 pm

Re: Love2D - Font Messed Up!

Post by Triplenox » Tue Oct 09, 2012 4:06 pm

micha wrote:You can then post a minimal example that reproduces your font problem, without exposing your game code.
Here is the code I have for the fonts:

Code: Select all

function love.load()
	--fonts!
	small = love.graphics.newFont("fonts/gf.ttf",24)
	medium = love.graphics.newFont("fonts/gf.ttf",36)
	large = love.graphics.newFont("fonts/gf.ttf",48)
	xlarge = love.graphics.newFont("fonts/gf.ttf",62)
	xxlarge = love.graphics.newFont("fonts/gf.ttf",72) end
And here is the code I have for printing the fonts:

Code: Select all

function love.draw()
	love.graphics.setFont(small)
	love.graphics.print("Credits:\nKeaton (Art)\nMatt Chambers (Code)\nJames McCarthy (Music)",10,355)
end
This isn't the full code for my love.load and love.draw, but it's everything to do with text, hope this helps, some how :p

Kind Regards,

-Triplenox (I'm feeling like a retard now!)

Triplenox
Prole
Posts: 26
Joined: Fri Jul 13, 2012 5:48 pm

Re: Love2D - Font Messed Up!

Post by Triplenox » Tue Oct 09, 2012 4:07 pm

kikito wrote:
Triplenox wrote:my problem is that my font that i'm using (Harabra) is quite high quality on letters, then fuzzy/blurry on the other letters
Image
I don't see anything obviously wrong on that picture. What letters do you consider "blurry"?
Well, they aren't exactly blurry, but they're out of place, and not in-line :p

Kind Regards,

-Triplenox

Post Reply

Who is online

Users browsing this forum: No registered users and 26 guests