Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Discussion: Use SDL_ttf for font rendering #130
I think it might be more efficient, if we were to ditch our own font rendering code for SDL_ttf.
I think this would require a rewrite of our rendering code and converting the font files to ttf.
Well, TTF and all other common font file types (OTF, WOFF) use vector graphics to ensure the font looks good even when using a very big size.
These files are used by SuperTux's custom font rendering system (and are afaik not used by any other software).
This means one would have to re-draw the letters as vector graphics (or use other open-source fonts). Furthermore, TTF doesn't support (multiple) colors inside one single letter (OTF does).
@Mathnerd314 Yes, that's Andale Mono, font copyright however allows that kind of stuff (kind of, maybe). We can replace that with Inconsolata or any of the other free monospace fonts around.
As for the SuperTux font, I would keep that bitmap, it looks nice and works as is. With TTF colors, outlines, shadows and stuff get a lot more complicated and you no longer can do font animations.
referenced this issue
Nov 22, 2015
Some work has been done in the