Advertisement Jump to content
Sign in to follow this  

[BMFont] Outline

This topic is 2681 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i tried to export a font with an outline but it seems that the advance of each characters are not really taking the outline thickness into account.
ex (using the '.' character):
// export of the font with no outline
char id=46 x=454 y=48 width=3 height=2 xoffset=1 yoffset=18 xadvance=5 page=0 chnl=15
// export of the font with 10px outline (10 is a bit big but it's just for the demo)
char id=46 x=140 y=470 width=22 height=22 xoffset=-8 yoffset=12 xadvance=7 page=0 chnl=15

The width and height seems to be correct (+20px on each) but offset and advance seems to be wrong (only 2px more advance ...).
Do i miss something and the values are correct or is there a problem ?

Share this post

Link to post
Share on other sites
The outline doesn't modify the spacing between characters. If you want the spacing to increase with the outline thickness you should do that dynamically as you render the text. The thickness is available in the info block of the font descriptor file.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!