Skip to main content
Tweeted twitter.com/#!/StackGameDev/status/552775760814288896
added 128 characters in body
Source Link
fabienbk
  • 143
  • 1
  • 5

I often gets the same problem: Someones creates a nice bitmap font for me in form of a sheet nicely formated into a png, like this:

enter image description here

...and i need to create the angelcode .fnt atlas for using it (into Unity, libGDX, or countless other engines).

Yet, every time I google it, I stumble upon dozen of tools that create .fnt files from rasterized TTF fonts. (BMFont, Fontbuilder, etc.) Correct me if i'm wrong but they don't support exsting images, they always start by generating one from a vector font.

I end up semi-manually creating the file with an ugly script (the format is quite simple), but it's incredibly tedious. Surely there is a much better way to do that? Especially for monospaced fonts which are very easy to partition...

edit: I've made a small javascript tool to solve that. if by any chance you're interested, it's here : http://fontcutter.fbksoft.com/

I often gets the same problem: Someones creates a nice bitmap font for me in form of a sheet nicely formated into a png, like this:

enter image description here

...and i need to create the angelcode .fnt atlas for using it (into Unity, libGDX, or countless other engines).

Yet, every time I google it, I stumble upon dozen of tools that create .fnt files from rasterized TTF fonts. (BMFont, Fontbuilder, etc.) Correct me if i'm wrong but they don't support exsting images, they always start by generating one from a vector font.

I end up semi-manually creating the file with an ugly script (the format is quite simple), but it's incredibly tedious. Surely there is a much better way to do that? Especially for monospaced fonts which are very easy to partition...

I often gets the same problem: Someones creates a nice bitmap font for me in form of a sheet nicely formated into a png, like this:

enter image description here

...and i need to create the angelcode .fnt atlas for using it (into Unity, libGDX, or countless other engines).

Yet, every time I google it, I stumble upon dozen of tools that create .fnt files from rasterized TTF fonts. (BMFont, Fontbuilder, etc.) Correct me if i'm wrong but they don't support exsting images, they always start by generating one from a vector font.

I end up semi-manually creating the file with an ugly script (the format is quite simple), but it's incredibly tedious. Surely there is a much better way to do that? Especially for monospaced fonts which are very easy to partition...

edit: I've made a small javascript tool to solve that. if by any chance you're interested, it's here : http://fontcutter.fbksoft.com/

Source Link
fabienbk
  • 143
  • 1
  • 5

How do you create fnt (angelcode format) files from existing bitmaps?

I often gets the same problem: Someones creates a nice bitmap font for me in form of a sheet nicely formated into a png, like this:

enter image description here

...and i need to create the angelcode .fnt atlas for using it (into Unity, libGDX, or countless other engines).

Yet, every time I google it, I stumble upon dozen of tools that create .fnt files from rasterized TTF fonts. (BMFont, Fontbuilder, etc.) Correct me if i'm wrong but they don't support exsting images, they always start by generating one from a vector font.

I end up semi-manually creating the file with an ugly script (the format is quite simple), but it's incredibly tedious. Surely there is a much better way to do that? Especially for monospaced fonts which are very easy to partition...