scummvm/scummvm — pull request #163 by lordhoto (2012-01-07 02:29:02+00:00)
Title: RFC: TTF support in our GUI

As the description already states, this pull request intends to get your opinions about TTF support for our GUI. It is definitly not in a state to be merged right now.

This adds a new (optional) dependancy on FreeType2 for the TTF support. I added Bitstreams Vera to our modern theme, so people can give this a try easily.

The big question is: Do we want this? I.e. are we fine with optionally depending on FreeType2?

I wouldn't want to talk too much about implementation details here, since there's already a few things I want to tackle:

* At least split the change from filename => basename for the "font" property in the theme XML files into its own commit. Maybe even revert this and go back to the old way, where the file was directly specified.
* Similar for the "scalable_font" prop, which was introduced to support TTF, without breaking ports, which do not feature FreeType2. Since we only support TTF files right now, we might just specify the filename directly.
* Supporting different charsets in the TTF code. This is relatively easy since all we need to do is to load the glyphs as the charset requires. This could be done with two additional static tables for the two charsets our non ISO-8859-1 translations use.
* General cleanup/refactoring of the code ;-).