Jump to content
  • Advertisement
Sign in to follow this  
openglinator

Bitmap Font Creator issues with line height

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

Not sure if this really is a bug, but ...

 

When I select a 24 px Size and combine it with [x] "Render from TrueType outline", Then I get 50 times out of 20000 chars an entry of height=25 and 6 times out of 20000 chars an entry of height=26 in the corresponding .fnt file.

 

However, when I deactivate the [ ] "Render from True Type outline" option, all generated entries in the .fnt have <= 24 height.

 

Is this the expected behavior or a bug?

Share this post


Link to post
Share on other sites
Advertisement

Rendering from the TrueType outline uses a different technique to rasterize the characters (I retrieve the outline and render the glyphs as polygons). I implemented this option after seeing that Windows ordinary GDI functions for rasterizing text sometimes cropped the glyphs if they were higher or lower than the cell height.

 

So, yes, you can expect difference in the height and width and sometimes characters that are larger than the cell height.

 

Did you check the actually glyphs that were rasterized in these cases? Do they look OK when writing text?

Share this post


Link to post
Share on other sites

No, I didn't check them. To be onest, at the moment I do not really care about this obscure thing.

One of the signs was under the first 127, so I guess it might become an issue later.

I used the Batang font that Windows 7 provides with the said 24 px.

 

I just found that this render option looks sharper than the supersample option.

Maybe I'm incorrect here. Didn't make a visual check when both options are on.

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.

GameDev.net 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!