Jump to content

How to create .fnt file from bitmap font ?


Alain91
 Share

Recommended Posts

Hello everyone,

 

I would like to use a font stored only in a bitmap file, like the ones used in the old amiga demos for example :)

 

I can not find any tool to make the .fnt or .xml files...

 

I can find truetype to .fnt, but no bitmap to fnt..

 

Please could you help me ?

 

Alain

Link to comment
Share on other sites

Ops, No you are right my fault. 

 

Hmmm ... what you could do is the following:

 

- Use any TrueType font with BMFont

- Configure BMFont in the way your original Bitmap Font is (size, spacing etc)

- BMFont generates the .fnt and a .png file

- Look at the png file - if the true type chars are in the same size, order etc as your bitmap font - simply  replace the file

 

This would work - however I guess you need to do some additional manual work while editing the png.

 

Sorry again for the confusion.

Link to comment
Share on other sites

  • 2 weeks later...

Hello Benny and Pixi.js !

 

After some work, I wrote a small java tool to create .fnt file to use with bitmap fixed size fonts.

This tool resolve my problem.. There may be another tool doing this but I didn't found it ..

 

This is my first java program so there may be mistakes, bugs, etc.. Feel free to give me feedback ;)

 

Hope it will help someone..

This is a tribute to the excellent Pixi.js ! :D

 

Enjoy !

Alain

bitmap2fnt.zip

Link to comment
Share on other sites

Hello Benny and Pixi.js !

 

After some work, I wrote a small java tool to create .fnt file to use with bitmap fixed size fonts.

This tool resolve my problem.. There may be another tool doing this but I didn't found it ..

 

This is my first java program so there may be mistakes, bugs, etc.. Feel free to give me feedback ;)

 

Hope it will help someone..

This is a tribute to the excellent Pixi.js ! :D

 

Enjoy !

Alain

 

Excellent stuff! :D

Link to comment
Share on other sites

  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...