Commit Graph
10 Commits
Author SHA1 Message Date
Johannes Schickel b4196e48b1 GRAPHICS: Add a DPI parameter to loadTTFFont.
Will be used by WME.
2012-08-09 03:13:00 +02:00
Johannes Schickel 3b212fdb51 GRAPHICS: Remove unused function ftFloor26_6 in ttf.cpp. 2012-05-03 23:25:00 +02:00
Alyssa Milburn b470c9af28 BASE: Free TTFLibrary singleton on shutdown.
This uses a helper function because TTFLibrary is internal.
2012-03-28 19:17:53 +02:00
Alyssa Milburn 92327c7991 GRAPHICS: Render TTF glyphs at the right locations.
Or at least using the fields used by the FreeType examples.
2012-03-19 23:00:14 +01:00
Alyssa Milburn 9a13b34549 GRAPHICS: Fix TTF glyph drawing at negative Y positions. 2012-03-19 22:57:48 +01:00
Johannes Schickel 66c3279b2f GRAPHICS: Obtain pointer to dst surface after bounds checks in TTF renderer.
This should really make sure we are not drawing outside the surface bounds.
2012-02-02 02:39:41 +01:00
Johannes Schickel 6402d30874 GRAPHICS: Use monochrome font hinter for TTF's monochrome loading. 2012-02-02 02:39:40 +01:00
Johannes Schickel f63df3bf7b GRAPHICS/GUI: Implement charset mapping for TTF fonts.
The charsets used by the translations now need to have a "$(name).cp" file,
which contains an charset index => unicode mapping. Otherwise
create_translations will fail.
2012-01-29 16:26:20 +01:00
Johannes Schickel 9f3fbe1bd7 GRAPHICS/GUI: Implement kerning support for Font.
This adapts the related graphics code, which is the generic Font API and the
TTF font implementation.

It furthermore adapts the GUI to properly take care of kerning in text input
widgets.
2012-01-29 16:26:20 +01:00
Johannes Schickel 843b9f9665 GRAPHICS: Add a TTF font class using FreeType2. 2012-01-29 16:26:20 +01:00