Hi, I'm new to Gideros but very excited to try it!
I'm trying to port an old (free) PC game to android as an exercise, and it has a font already in png format (with characters in a grid). Now, the Font Creator takes a ttf font file and generates a png+txt, but there's no way of starting from a png, in other words I need the matching txt file. I can try to guess its format from a generated one, but is there a safer way? Possibly a little documentation on its format would be enough.
Thank you very much
Michele
Comments
http://www.html5gamedevs.com/topic/1743-how-to-create-fnt-file-from-bitmap-font/?p=13436
Bye
Michele
Font.new("font.fnt", "font.png")
Or name it txt if you want, it does not matter
The format is called .fnt which can be also generated by GlyphDesigner or BMFont generator, etc.
But what you need is the reverse tool, which I think the one I provided in the link should help you with
Can we have an explanation of the txt format? It's so simple, it should not be industry secret :-)
Thanks
Michele
I'd be happy with the numbers-only format, too, maybe can it be simplified further?
Bye
Michele
Ok, I managed to start from a txt generated by Gideros Font Creator and recreate it for my bitmap font.
I did a little lua program to generate it (just to practice lua!), I post it here if it can be useful to someone else (it only works for fixed width characters):
Likes: GregBUG
I unfortunately don't know it from the top of my head
Bye
Michele