Jump to content
  • Advertisement
Sign in to follow this  
txfx

[BMFont] Outline

This topic is 2624 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

Hi,
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
Advertisement
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 GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!