From aa92cddb8ba9b539f2e1c34d87005e1536001e4a Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Fri, 28 Apr 2017 18:37:40 +0900 Subject: [PATCH] evas font code - build on older freetypes without new definitions use the actual #35 as: in freetype and it cant change without breaking abi... @fix --- src/lib/evas/common/evas_font_main.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/lib/evas/common/evas_font_main.c b/src/lib/evas/common/evas_font_main.c index ba56848df1..91db4d52ec 100644 --- a/src/lib/evas/common/evas_font_main.c +++ b/src/lib/evas/common/evas_font_main.c @@ -30,14 +30,19 @@ evas_common_font_init(void) { int error; const char *s; - FT_UInt interpreter_version = TT_INTERPRETER_VERSION_35; + FT_UInt interpreter_version = +#ifndef TT_INTERPRETER_VERSION_35 + TT_INTERPRETER_VERSION_35; +#else + 35; +#endif initialised++; 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); + FT_Property_Set(evas_ft_lib, "truetype", "interpreter-version", + &interpreter_version); evas_common_font_load_init(); evas_common_font_draw_init(); s = getenv("EVAS_FONT_DPI");