From f76b020e5ebe8e68f99ec68c76c319daa54bf09f Mon Sep 17 00:00:00 2001 From: artemp Date: Tue, 24 Sep 2013 14:41:22 +0100 Subject: [PATCH] + remove redundant identity matrix and pass 0 to FT_Set_Transform --- src/font_engine_freetype.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/font_engine_freetype.cpp b/src/font_engine_freetype.cpp index f8b8ad24e..bc69e2756 100644 --- a/src/font_engine_freetype.cpp +++ b/src/font_engine_freetype.cpp @@ -312,7 +312,6 @@ char_info font_face_set::character_dimensions(unsigned int c) return itr->second; } - FT_Matrix matrix; FT_Vector pen; FT_Error error; @@ -325,12 +324,7 @@ char_info font_face_set::character_dimensions(unsigned int c) glyph_ptr glyph = get_glyph(c); FT_Face face = glyph->get_face()->get_face(); - matrix.xx = (FT_Fixed)( 1 * 0x10000L ); - matrix.xy = (FT_Fixed)( 0 * 0x10000L ); - matrix.yx = (FT_Fixed)( 0 * 0x10000L ); - matrix.yy = (FT_Fixed)( 1 * 0x10000L ); - - FT_Set_Transform(face, &matrix, &pen); + FT_Set_Transform(face, 0, &pen); error = FT_Load_Glyph (face, glyph->get_index(), FT_LOAD_NO_HINTING); if ( error )