FreeType2 support added
The new improvement, that I have just finished is the FreeType2 library fonts.
I can now say that figuring the API wasn't so easy. The hardest part for me was the metrics system. There are so many things like widths, advances , dpi and so on, so it took me quite some time to just get an overall picture. One of the best sources for figuring everything out was this post by Brian Lawson it is well written and easy enough to follow.
The new fonts with freetype2 are really looking great, not only it produces much higher quality glyphs, but generally it takes less space then usual bitmap textures I used before. It is also possible to change font resolution on the fly or with config option.
Here are some sample images at different DPI values:
These values can be easily altered in the config here:
dpih = 100
dpiv = 100
name = "arial.ttf"
One of the nasty problems I had with FreeType was the lack of choices for building dynamical dllVC6 and I couldn't find any way to build a dll. Changing ftbuild.h didn't help. I solved this by using VC2005. It has an option that allows to changing the output type really easily.
The freetype2 is now included as part of Galactic Engine 2.
Labels: freetype2 font dpi lib build dll























