Jump to content

  • Log In with Google      Sign In   
  • Create Account

- - - - -

BMFont request: Save font widths in .INI format


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
3 replies to this topic

#1 Wanny   Members   -  Reputation: 127

Like
0Likes
Like

Posted 13 December 2013 - 08:59 PM

(can requests/suggestions be posted here, right?)

 

I JUST found about the program and I like the incredible freedom to choose between multiple subsets. The only thing I'm missing is an option to save the font widths in .INI format, like Bitmap Font Builder or Texture Font Generator do.

I'd be told "why don't you use them?"... well, they are very limited in what subsets can I generate.

 

The .INI would be like this, for a simple Arial font:

[Char Widths]
0=14
1=28
2=14
3=14
4=14
5=14
6=14
7=14
8=14
9=96
10=0
11=14
12=14
13=0
14=14
15=14
16=14
17=14
18=14
19=14
20=14
21=14
22=14
23=14
24=14
25=14
26=14
27=14
28=0
29=0
30=0
31=0
32=8
33=8
34=10
35=16
...etc

Problem is, Bitmap Font Builder only outputs the standard ASCII characters (from 0 to 255)

For JAPANESE characters, there's a modified version of Texture Font Generator that can generate multiple pages/images, specifying the chars that are in each line. For example:

[kanji 1]
Line  0=一二三四五六七八
Line  1=九十本語&()?
Line  2=!/革命祭桜小坂
Line  3=鬼道弐神様民謡明
Line  4=日蒼衝動猫毛亜熱
Line  5=帯爆弾新谷大見解
Line  6=魔法扉夜空才遅伝
Line  7=説真

...but it doesn't support other subsets, like Chinese or Korean.

 

Would be possible for BMFont to output this file?


Edited by Wanny, 13 December 2013 - 09:00 PM.


Sponsor:

#2 Andreas Jonsson   Moderators   -  Reputation: 3348

Like
0Likes
Like

Posted 14 December 2013 - 07:16 AM

Hi Wanny,

 

I'm glad you like BMFont. 

 

Unfortunately BMFont currently cannot generate the font exactly like Bitmap Font Builder or Texture Font Generator. It was never my intention with BMFont to try to mimic other bitmap font formats. What I wanted was to create a format that would allow you to pack as many characters in a texture as possible, and BMFont is definitely much more efficient at that than both Bitmap Font Builder and Texture Font Generator. 

 

Do you really need to use the format that Bitmap Font Builder and Texture Font Generator uses? Are you generating fonts for an existing application, in which you cannot change the format?

 

If you really need the format of Bitmap Font Builder I'm sure you can quite easily write a tool that converts the output from BMFont into that format.

 

Regards,

Andreas


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

#3 Wanny   Members   -  Reputation: 127

Like
0Likes
Like

Posted 14 December 2013 - 08:22 AM

Hmm, at least in regards of how the images are generated, BMFont is practically the same as Bitmap Font Builder or Texture Font Generator (except from the order in how the characters are placed).

 

Well, I need the specified output format for a dance game simulator (OpenITG, a fork of StepMania).

Sadly I'm not good enough at programming, so I can't add a way to interpret the .fon format (or "easily" write a converter tool)



#4 Andreas Jonsson   Moderators   -  Reputation: 3348

Like
0Likes
Like

Posted 14 December 2013 - 09:03 AM

Since OpenITG is open source, perhaps the authors might be interested in enhancing the code in order to support more advanced bitmap fonts. Perhaps you can ask them about it?


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