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
This commit is contained in:
Carsten Haitzler 2017-04-28 18:37:40 +09:00
parent b2ca7a96dc
commit aa92cddb8b
1 changed files with 8 additions and 3 deletions

View File

@ -30,14 +30,19 @@ evas_common_font_init(void)
{ {
int error; int error;
const char *s; 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++; initialised++;
if (initialised != 1) return; if (initialised != 1) return;
error = FT_Init_FreeType(&evas_ft_lib); error = FT_Init_FreeType(&evas_ft_lib);
if (error) return; if (error) return;
FT_Property_Set(evas_ft_lib, FT_Property_Set(evas_ft_lib, "truetype", "interpreter-version",
"truetype", "interpreter-version", &interpreter_version); &interpreter_version);
evas_common_font_load_init(); evas_common_font_load_init();
evas_common_font_draw_init(); evas_common_font_draw_init();
s = getenv("EVAS_FONT_DPI"); s = getenv("EVAS_FONT_DPI");