Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating .fnt files
Author Message
Your Computer Offline
SCAN ME!

Posts: 3,237
Joined: Jul 2011
Reputation: 216
Post: #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
Visit this user's website Find all posts by this user Quote this message in a reply
flamez3 Offline
Posting Freak

Posts: 1,320
Joined: Apr 2011
Reputation: 57
Post: #2
RE: Creating .fnt files
Easy tut, What would one use this type of stuff for?

11-03-2011 07:08 AM
Find all posts by this user Quote this message in a reply
Your Computer Offline
SCAN ME!

Posts: 3,237
Joined: Jul 2011
Reputation: 216
Post: #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
Visit this user's website Find all posts by this user Quote this message in a reply
Krymtel Offline
Member

Posts: 105
Joined: Oct 2011
Reputation: 3
Post: #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 all posts by this user Quote this message in a reply
Unearthlybrutal Offline
Senior Member

Posts: 695
Joined: May 2011
Reputation: 24
Post: #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
Visit this user's website Find all posts by this user Quote this message in a reply
Juby Away
Senior Member

Posts: 285
Joined: May 2011
Reputation: 5
Post: #6
RE: Creating .fnt files
hmmm mine is invisible when I use it.

Forever passing judgement compared to a fraud.
11-29-2011 03:18 AM
Find all posts by this user Quote this message in a reply
palistov Offline
Posting Freak

Posts: 1,175
Joined: Mar 2011
Reputation: 56
Post: #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 all posts by this user Quote this message in a reply
Krymtel Offline
Member

Posts: 105
Joined: Oct 2011
Reputation: 3
Post: #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 all posts by this user Quote this message in a reply
Your Computer Offline
SCAN ME!

Posts: 3,237
Joined: Jul 2011
Reputation: 216
Post: #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
Visit this user's website Find all posts by this user Quote this message in a reply
Krymtel Offline
Member

Posts: 105
Joined: Oct 2011
Reputation: 3
Post: #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 all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)