Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


- - - - -

BitmapFont: explanation for all parameters


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 Ogli   Members   -  Reputation: 143

Like
0Likes
Like

Posted 20 June 2014 - 03:33 PM

Hello,

 

it's been a while now that I've created my own .fnt parser and merge-tool that combines two fonts together.

 

Now I want to make my own .fnt files for custom bitmaps (with my smileys).

And I also want to merge the content of two .png files containing some glyphs.

 

But to achieve my goal, I must fully understand the content of the two header-lines in .fnt files.

Is there a short (ore detailed, I prefer detailed) overview of what all those parameters mean? Here's my header:

info face="Batang" size=-24 bold=0 italic=0 charset="" unicode=1 stretchH=100 smooth=1 aa=1 padding=0,0,0,0 spacing=1,0 outline=3
common lineHeight=24 base=21 scaleW=4096 scaleH=4096 pages=1 packed=0 alphaChnl=1 redChnl=0 greenChnl=0 blueChnl=0

Thanks for sharing any easy-access-information (I know, there is a source code around somewhere now too).
 :-)

 



Sponsor:

#2 Andreas Jonsson   Moderators   -  Reputation: 3618

Like
0Likes
Like

Posted 21 June 2014 - 07:20 AM

Perhaps the manual can be of assistance :)

 

You can also take a look at my own code for rendering text with bitmap fonts.


AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS