diff options
Diffstat (limited to 'source/blender/blenfont/intern/blf_font.c')
-rw-r--r-- | source/blender/blenfont/intern/blf_font.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/source/blender/blenfont/intern/blf_font.c b/source/blender/blenfont/intern/blf_font.c index 038e73cc928..3e2927d581e 100644 --- a/source/blender/blenfont/intern/blf_font.c +++ b/source/blender/blenfont/intern/blf_font.c @@ -18,8 +18,7 @@ #include FT_FREETYPE_H #include FT_GLYPH_H -#include FT_TRUETYPE_TABLES_H /* For TT_OS2 */ -#include FT_MULTIPLE_MASTERS_H /* Variable font support. */ +#include FT_TRUETYPE_TABLES_H /* For TT_OS2 */ #include "MEM_guardedalloc.h" @@ -1286,10 +1285,6 @@ FontBLF *blf_font_new(const char *name, const char *filepath) MEM_freeN(mfile); } - if (FT_HAS_MULTIPLE_MASTERS(font->face)) { - FT_Get_MM_Var(font->face, &(font->variations)); - } - font->name = BLI_strdup(name); font->filepath = BLI_strdup(filepath); blf_font_fill(font); @@ -1356,10 +1351,6 @@ FontBLF *blf_font_new_from_mem(const char *name, const unsigned char *mem, int m return NULL; } - if (FT_HAS_MULTIPLE_MASTERS(font->face)) { - FT_Get_MM_Var(font->face, &(font->variations)); - } - font->name = BLI_strdup(name); font->filepath = NULL; blf_font_fill(font); @@ -1374,10 +1365,6 @@ void blf_font_free(FontBLF *font) MEM_freeN(font->kerning_cache); } - if (font->variations) { - FT_Done_MM_Var(ft_lib, font->variations); - } - FT_Done_Face(font->face); if (font->filepath) { MEM_freeN(font->filepath); |