Jump to content
  • Advertisement
Sign in to follow this  
hellraiser

FreeType issues

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

I'm rendering fonts using FreeType in OpenGL and am getting weird results when rendering the fonts at different heights. See if you can spot the differences... :) This is the font with height of 24px: Free Image Hosting at www.ImageShack.us At 16px high: Free Image Hosting at www.ImageShack.us Now at 12px high: Free Image Hosting at www.ImageShack.us Can you see how corrupt the 12px rendered font is? I tell you, it gets much worse at 8px... Is this normal? Does FreeType not do well at low heights? Or must I be doing something wrong in my code? [Edited by - hellraiser on August 5, 2007 6:16:27 PM]

Share this post


Link to post
Share on other sites
Advertisement
It´s quite hard to tell what's going wrong since you didn't explain what you do nor show any code.

I use FreeType (2) myself and could recreate the same effects easily. That's because i initialize ttf fonts with a certain size (12) and directly generate the display lists. Probably not a good idea. I'd need to call glScale to get the size bigger, which would make the result kinda messy. Are you doing something similar?

How do you achief the font size scaling? glScale or by generating the bitmaps from the correctly initialized glyths?

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!