Frictional Games Forum (read-only)
Creating .fnt files - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Articles (https://www.frictionalgames.com/forum/forum-40.html)
+---- Thread: Creating .fnt files (/thread-11128.html)

Pages: 1 2


Creating .fnt files - Your Computer - 11-02-2011

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.


RE: Creating .fnt files - flamez3 - 11-03-2011

Easy tut, What would one use this type of stuff for?


RE: Creating .fnt files - Your Computer - 11-03-2011

(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.


RE: Creating .fnt files - Krymtel - 11-28-2011

(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


RE: Creating .fnt files - Unearthlybrutal - 11-28-2011

Nice guide! Smile
I could make my own font to my mod


RE: Creating .fnt files - Juby - 11-29-2011

hmmm mine is invisible when I use it.


RE: Creating .fnt files - palistov - 11-29-2011

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


RE: Creating .fnt files - Krymtel - 11-29-2011

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?


RE: Creating .fnt files - Your Computer - 11-29-2011

(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).


RE: Creating .fnt files - Krymtel - 11-29-2011

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)