Frictional Games Forum (read-only)

Full Version: Creating .fnt files
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
This information is relevant to version 1.12 of the bitmap font generator and only useful for full conversions.


You can find the bitmap font generator here: http://www.angelcode.com/products/bmfont/ (Windows only--lame, i know).

Once you have the program installed and opened, go to Options > Font Settings. Choose the font you want to convert and click OK (the rest can remain at their defaults).

Now go to Options > Export Options. Under Presets choose "White text with alpha." For Font descriptor choose "XML." For Textures choose "DirectDraw Surface." For Compression either one will work, but for best quality you're going to want to pick "DXT5." You can leave the rest at their defaults. Click OK.

Now make sure all the characters are selected by going to Edit > (Un)Select all chars.

Now all you need to do is go to Options > Save bitmap font as... and pick a place to save them at.
Easy tut, What would one use this type of stuff for?
(11-03-2011, 07:08 AM)flamez3 Wrote: [ -> ]Easy tut, What would one use this type of stuff for?

Changing main menu font, loading screen font, subtitles font, etc.
(11-03-2011, 08:28 AM)Your Computer Wrote: [ -> ]
(11-03-2011, 07:08 AM)flamez3 Wrote: [ -> ]Easy tut, What would one use this type of stuff for?

Changing main menu font, loading screen font, subtitles font, etc.
WOW! Thank you! This is great for me, couldn't find anything good until now Big Grin
Nice guide! Smile
I could make my own font to my mod
hmmm mine is invisible when I use it.
Good stuff man, great find! I was boggled when I opened an fnt file to find it was an XML file that listed the coordinates and dimensions of each character on the bitmap...was wondering how I'd ever create my own high-res font. I was planning on using a different font for a project but didn't like how blocky and low-quality it was. Never finished the project either, haha.

tldr Nice tutorial! +1 for love
Oh, quick question. If I download a custom font online and convert it to a .fnt file, it will still work since it saves an image file along with the .fnt file right?
(11-29-2011, 04:04 PM)Krymtel Wrote: [ -> ]Oh, quick question. If I download a custom font online and convert it to a .fnt file, it will still work since it saves an image file along with the .fnt file right?

Yeah, so long as you put the .fnt file and its images within one of the directories listed in the resources.cfg file. Then you just specify the file name in one of the main configuration files (e.g. menu.cfg).
Thanks man, managed to get all fonts to be custom for my conversion.
(11-29-2011, 03:18 AM)Juby Wrote: [ -> ]hmmm mine is invisible when I use it.
Remember to make it a 32-bit texture and not an 8-bit texture. Also make sure you add at least a value of 1 for all four padding values (look around, you'll find it.) Finally, make sure you save the font as XML and not Binary or Text and set the Preset to White Text with Alpha for white text or Black Text with Alpha for black text. Also save the file as .dds (lol sorry for not being to specific or organized Tongue)

*EDIT* Heh just realized I rehashed a lot of stuff that was said before (didn't read the tutorial just downloaded the file Big Grin)
Pages: 1 2