🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Apply kerning

Started by
2 comments, last by Antie 5 years, 3 months ago

Hi.

I've used Bitmap font generator to create my font but because of render engine specific I have to add a lot of kerning pairs (~4000 summary). Obviously that number is too big and may cause performance issues, so my question, - is there some way to "apply" kerning right to bitmap itself by moving glyphs in some specific way?  

Advertisement

You shouldn't need to move the glyphs in the bitmap.

If you want to make all glyphs be rendered more closely together, then you can simply update the xadvance attribute for every glyph in the font descriptor file.

You can easily do that with a script.

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

That's true, thank you!

This topic is closed to new replies.

Advertisement