Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 2 Vote(s) - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating .fnt files
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#1
Creating .fnt files

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.

Tutorials: From Noob to Pro
(This post was last modified: 11-29-2011, 05:11 AM by Your Computer.)
11-02-2011, 04:40 AM
Website Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#2
RE: Creating .fnt files

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

11-03-2011, 07:08 AM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#3
RE: Creating .fnt files

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

Tutorials: From Noob to Pro
11-03-2011, 08:28 AM
Website Find
Krymtel Offline
Member

Posts: 105
Threads: 9
Joined: Oct 2011
Reputation: 3
#4
RE: Creating .fnt files

(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

Eidolon Total Conversion (WIP)
11-28-2011, 09:11 PM
Find
Unearthlybrutal Offline
Posting Freak

Posts: 775
Threads: 12
Joined: May 2011
Reputation: 26
#5
RE: Creating .fnt files

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

When Life No Longer Exists
Full-conversion mod
11-28-2011, 09:35 PM
Website Find
Juby Away
Senior Member

Posts: 290
Threads: 2
Joined: May 2011
Reputation: 5
#6
RE: Creating .fnt files

hmmm mine is invisible when I use it.

Insanity. Static.
11-29-2011, 03:18 AM
Find
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#7
RE: Creating .fnt files

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

11-29-2011, 07:32 AM
Find
Krymtel Offline
Member

Posts: 105
Threads: 9
Joined: Oct 2011
Reputation: 3
#8
RE: Creating .fnt files

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?

Eidolon Total Conversion (WIP)
11-29-2011, 04:04 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#9
RE: Creating .fnt files

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

Tutorials: From Noob to Pro
(This post was last modified: 11-29-2011, 06:21 PM by Your Computer.)
11-29-2011, 06:21 PM
Website Find
Krymtel Offline
Member

Posts: 105
Threads: 9
Joined: Oct 2011
Reputation: 3
#10
RE: Creating .fnt files

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)

Eidolon Total Conversion (WIP)
(This post was last modified: 11-29-2011, 06:38 PM by Krymtel.)
11-29-2011, 06:31 PM
Find




Users browsing this thread: 1 Guest(s)