The freetype hinter only works correctly if the embedded transformation is the identity matrix. The AGG freetype font engine has a flip_y method to make it easier to work with coordinates where y points down. Since it changes the embedded transformation, hinting was messed up. Therefor, this is a workarround to be able to keep using the identity matrix and still have y pointing down. It just flips the generated raster glyphs.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12334 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -773,7 +773,8 @@ namespace agg
|
|||||||
//------------------------------------------------------------------------
|
//------------------------------------------------------------------------
|
||||||
bool font_engine_freetype_base::prepare_glyph(unsigned glyph_code)
|
bool font_engine_freetype_base::prepare_glyph(unsigned glyph_code)
|
||||||
{
|
{
|
||||||
bool flip = false;
|
// bool flip = false;
|
||||||
|
bool flip = true;
|
||||||
|
|
||||||
|
|
||||||
m_glyph_index = FT_Get_Char_Index(m_cur_face, glyph_code);
|
m_glyph_index = FT_Get_Char_Index(m_cur_face, glyph_code);
|
||||||
|
|||||||
Reference in New Issue
Block a user