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 ?
[BMFont] Outline
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.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement