Image font sharing thread

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
georgeprosser
Citizen
Posts: 68
Joined: Fri Mar 28, 2014 5:55 pm

Image font sharing thread

Post by georgeprosser »

Hey lovers! I've spent way too long on converting from ttf to image font manually, but it's more worthwhile if others can use them.

Here's Free Pixel:
ttf: http://www.dafont.com/free-pixel.font
image font:
pixelfree.png
pixelfree.png (127.88 KiB) Viewed 7938 times
glyph string: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789#.!?: "



And here's Open Sans PX:
ttf: http://codewitchgamedev.blogspot.de/p/o ... oject.html
image font:
open-sans-px-16.png
open-sans-px-16.png (42.76 KiB) Viewed 7938 times
glyph string: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~?\"\" "
User avatar
nkorth
Prole
Posts: 15
Joined: Sun Sep 18, 2011 8:54 pm
Contact:

Re: Image font sharing thread

Post by nkorth »

Here's a tiny one I made:

Image

Glyphs: " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"

I also have a few more that I made that aren't in Love2D format yet, but I can convert them if anyone is interested:

"Dark Future"
Image

"Dark Future Bold"
Image

"TI83"
Image

"Telex 2 Narrow"
Image

"Toroko"
Image

All of those will have a particularly "retro" look to them because they're fixed-width. I'm thinking about redoing "Toroko" in variable-width though, especially if anyone else wants to use it.
Last edited by nkorth on Sat Jul 25, 2015 4:08 pm, edited 1 time in total.
User avatar
zorg
Party member
Posts: 3444
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Image font sharing thread

Post by zorg »

I'll edit this post later to include two fonts myself, but also, i think 0.10 or later will have a more advanced image font solution, last i heard.

Edit: Here are the two fonts i got:

Image

Code: Select all

string = "0123456789-&E"
Image

Code: Select all

string = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ _().<>!?:0123456789&*@/#"
Some symbols are mapped to different ones purely because i didn't want to use unicode characters.
Last edited by zorg on Sat Jul 25, 2015 5:54 am, edited 3 times in total.
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
User avatar
georgeprosser
Citizen
Posts: 68
Joined: Fri Mar 28, 2014 5:55 pm

Re: Image font sharing thread

Post by georgeprosser »

zorg wrote:I'll edit this post later to include two fonts myself, but also, i think 0.10 or later will have a more advanced image font solution, last i heard.
I don't know much about image fonts, but I think the format used by XNA is fairly standard: http://blogs.msdn.com/b/shawnhar/archiv ... n-xna.aspx
User avatar
master both
Party member
Posts: 262
Joined: Tue Nov 08, 2011 12:39 am
Location: Chile

Re: Image font sharing thread

Post by master both »

This is one I got from the internet and edited myself, It's really low res thought.
Image
Glyph string: " ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-=[]\\,./;')!@#$%^&*(+{}!<>?:\""

Bigger Preview:
  • Image
User avatar
slime
Solid Snayke
Posts: 3132
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Image font sharing thread

Post by slime »

zorg wrote:i think 0.10 or later will have a more advanced image font solution, last i heard.
Indeed, LÖVE 0.10.0 will support the AngelCode BMFont format, which is relatively standard these days. There are a number of programs out there which generate BMFont files – this page lists a few.

0.10.0 will also slightly improve the old LÖVE ImageFont format. The colored separator pixels won't be treated as spacing anymore, and you'll be able to add a constant (positive or negative) spacing value for all glyphs in an ImageFont via an optional third parameter to love.graphics.newImageFont.
User avatar
arampl
Party member
Posts: 248
Joined: Mon Oct 20, 2014 3:26 pm

Re: Image font sharing thread

Post by arampl »

slime wrote:Indeed, LÖVE 0.10.0 will support the AngelCode BMFont format, which is relatively standard these days. There are a number of programs out there which generate BMFont files – this page lists a few.
Hooray!
And Lovelas library someday will help to create such fonts, I hope.
User avatar
Jasoco
Inner party member
Posts: 3725
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Image font sharing thread

Post by Jasoco »

Just a note: If you post a font, please don't forget to include the string required to use it too. No one wants to have to retype out the entire set of characters.

Also, letter spacing is all I've ever wanted from them. Glad to see it'll be in a future version.
User avatar
arampl
Party member
Posts: 248
Joined: Mon Oct 20, 2014 3:26 pm

Re: Image font sharing thread

Post by arampl »

Jasoco wrote:...letter spacing is all I've ever wanted from them...
What of kerning?
Without it text can look amateur with non-monospaced font.
BMFont support kerning pairs as they tell.
User avatar
slime
Solid Snayke
Posts: 3132
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Image font sharing thread

Post by slime »

Drawn text will automatically use kerning from BMFont files and TrueType fonts in LÖVE 0.10.0. ImageFonts don't have it, though.
Post Reply

Who is online

Users browsing this forum: No registered users and 99 guests