FreeType for scaling fonts?

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
Jookia
Posts: 170
Joined: Wed Nov 19, 2008 1:11 am

FreeType for scaling fonts?

Post by Jookia »

I know FreeType is a whole library for fonts, but to look at it now it's a whole library and there's got to be a better way to do this.

So I was thinking, if I just wanted to scale stuff, wouldn't it be easier to create bitmap fonts on the fly by taking the current bitmap font and resizing it. Sounds easy enough, but then I'd have to somehow un-blur/antialias currently loaded fonts.

So my current question is.

Is it worth making a bmp scaler for fonts or should I keep using the FreeType library, thus slowing down rendering?
CuteAlien
Admin
Posts: 9930
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

You can also create bitmap fonts with different sizes and use those. Resizing bitmap fonts at runtime will probably never look that good.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply