image font problem?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
image font problem?
Playing with fonts and created a two character image font. In my example between the "S" and "O" characters is an extra pixel of spacing where i dont expect any to be. I've attached my code.
- Attachments
-
- font.love
- (820 Bytes) Downloaded 166 times
Re: image font problem?
This is due to the default spacing factor (which is 1). If you want no spacing between your characters, you should add the font using this line:
I really should fix the documentation/tutorial that details how to use image fonts because even I had to experiment a bit.
Code: Select all
font = love.graphics.newImageFont("font1.png", "so", 0)
Now posting IN STEREO (where available)
Re: image font problem?
Ah right, thanks mike. I did play with that but didn't happen to try 0
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 4 guests