Woopsi now has FreeType support. That means it will load TrueType, OpenType, FNT and nearly a dozen other types of font.
Many thanks to Lakedaemon for his hard work implementing this. All I had to do was tidy up the code a bit, split the classes into three separate cpp/h file combos and make a couple of minor alterations to the build files.
Lakedaemon, if you’re interested in getting hold of the latest version, pull down the Woopsi branches folder from SVN and take a look at the “woopsi_with_freetype” branch. To compile with FreeType support:
- Deploy libwoopsi as usual to your devkitPro folder.
- Copy “libfreetype” to your devkitPro folder from the “libs” directory within the “libwoopsi” folder.
Here’s your FreeType demo altered to use the new structure. It’s identical except for two more includes.
I need to do some testing and see if I can get your suggested monochrome version working. I’d also like to try and use the pre-ported version of FreeType hosted by the devkitPro guys instead of a custom build, but their instructions for how to use the port libraries don’t seem to be terribly accurate. Once I’m happy with it I’ll merge the branch into the trunk and we’ll have another release to play with.
I’m not sure how this is going to work with the SDL version yet.