Skip to main content
gamedev.net
🔒 Locked

BMFont disable hinting?

Started by Jonathan2 2 replies 2k views
Original Post
Jonathan2
Jonathan2
Is there a way to disable hinting? The font I am trying to render looks better without hinting:

problemzm.png
WitchLord
WitchLord
No, unfortunately not.

I'll investigate if it is something that can be easily added, but I'm not sure if GDI even offers that possibility.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - <a href="http://www.angelcode.com/tower" rel
Jonathan2
Jonathan2
I tried to use GDI++ but the output of BMFont doesnt appear to be affected

edit: I was able to get around this by editing the .ttf for the font and removing all hints
WitchLord
WitchLord
I had to implement a different way of rasterizing the glyphs due to a bug in GDI (Getting the bitmap from GetGlyphOutline is not reliable when font has glyphs that go above or below cell height).

In this alternative I've implemented the option to turn off TrueType hinting.

Please give the updated 1.12a beta on the site a try and let me know if there are any problems.

Regards,
Andreas
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - <a href="http://www.angelcode.com/tower" rel

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.