forked from enlightenment/efl
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.
This commit is contained in:
parent
0a39fae0a2
commit
f68a925d81
|
@ -16,6 +16,7 @@
|
|||
#include FT_OUTLINE_H
|
||||
#include FT_SYNTHESIS_H
|
||||
#include FT_BITMAP_H
|
||||
#include FT_TRUETYPE_DRIVER_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;
|
||||
|
||||
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);
|
||||
evas_common_font_load_init();
|
||||
evas_common_font_draw_init();
|
||||
s = getenv("EVAS_FONT_DPI");
|
||||
|
|
Loading…
Reference in New Issue