summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Hirt <daniel.hirt@samsung.com>2016-09-18 17:02:27 +0300
committerDaniel Hirt <daniel.hirt@samsung.com>2016-09-20 11:29:38 +0300
commitf68a925d817dc469c68fa993b43b255a573b0243 (patch)
tree18994a442036b1349653920a365bb67bc6c1b244 /src
parent0a39fae0a2c27ec48b39caca3b00dc54bdffaa32 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/lib/evas/common/evas_font_main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/evas/common/evas_font_main.c b/src/lib/evas/common/evas_font_main.c
index 7562d28a88..ba56848df1 100644
--- a/src/lib/evas/common/evas_font_main.c
+++ b/src/lib/evas/common/evas_font_main.c
@@ -16,6 +16,7 @@
16#include FT_OUTLINE_H 16#include FT_OUTLINE_H
17#include FT_SYNTHESIS_H 17#include FT_SYNTHESIS_H
18#include FT_BITMAP_H 18#include FT_BITMAP_H
19#include FT_TRUETYPE_DRIVER_H
19 20
20FT_Library evas_ft_lib = 0; 21FT_Library evas_ft_lib = 0;
21static int initialised = 0; 22static int initialised = 0;
@@ -29,11 +30,14 @@ evas_common_font_init(void)
29{ 30{
30 int error; 31 int error;
31 const char *s; 32 const char *s;
33 FT_UInt interpreter_version = TT_INTERPRETER_VERSION_35;
32 34
33 initialised++; 35 initialised++;
34 if (initialised != 1) return; 36 if (initialised != 1) return;
35 error = FT_Init_FreeType(&evas_ft_lib); 37 error = FT_Init_FreeType(&evas_ft_lib);
36 if (error) return; 38 if (error) return;
39 FT_Property_Set(evas_ft_lib,
40 "truetype", "interpreter-version", &interpreter_version);
37 evas_common_font_load_init(); 41 evas_common_font_load_init();
38 evas_common_font_draw_init(); 42 evas_common_font_draw_init();
39 s = getenv("EVAS_FONT_DPI"); 43 s = getenv("EVAS_FONT_DPI");