How to change bitmap character id in bmfont

Hello,

I am using bmfont to generate my weather bitmap.

Generally speaking, this icon wil be written into the .fnt with an id 61453(U+F00D). How to change it to the id of another character eg. a

I know I can modify the .fnt file, but manually edition is not convinient as an automatic way

  • Hi I think the first step is to get the id(code value) of 'a' and then replace the id value with the id you get. For example , if the unicode value of a is ####, you can replace the id in the .fnt file like this 

     char id=#### x=0     y=0     width=22    height=23    xoffset=0     yoffset=0     xadvance=22    page=0  chnl=15 

    and in your codes, you use 'a' to stand for the icon.

  • Hi,thanks for your reply. I have been using this method as well. But if I generate different sizes, it needs many modifications. Not that elegant actually.