herdsman pushed a commit to branch master.


commit f68a925d817dc469c68fa993b43b255a573b0243
Author: Daniel Hirt <daniel.h...@samsung.com>
Date:   Sun Sep 18 17:02:27 2016 +0300

    Evas font: force freetype v35 ttf interpreter
    Ref T4623
    v40 bytecode interpreter is official as of freetype 2.7.
    The results don't look so good at the moment. The text looks and glyph
    positioning seem worse than they were with the previous v35 interpreter.
    So, in the meantime we'll keep using v35, just so everything looks
    normal again.
    Although the v40 is relevant since around 2.6.3, I rather not do any
    FREETYPE_MINOR checks in this patch, because distributions might ship
    previous versions with the other (v38) interpreter enabled.
 src/lib/evas/common/evas_font_main.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/lib/evas/common/evas_font_main.c 
index 7562d28..ba56848 100644
--- a/src/lib/evas/common/evas_font_main.c
+++ b/src/lib/evas/common/evas_font_main.c
@@ -16,6 +16,7 @@
 #include FT_OUTLINE_H
 #include FT_SYNTHESIS_H
 #include FT_BITMAP_H
 FT_Library      evas_ft_lib = 0;
 static int      initialised = 0;
@@ -29,11 +30,14 @@ evas_common_font_init(void)
    int error;
    const char *s;
+   FT_UInt interpreter_version = TT_INTERPRETER_VERSION_35;
    if (initialised != 1) return;
    error = FT_Init_FreeType(&evas_ft_lib);
    if (error) return;
+   FT_Property_Set(evas_ft_lib,
+         "truetype", "interpreter-version", &interpreter_version);
    s = getenv("EVAS_FONT_DPI");


Reply via email to