diff options
author | Harley Acheson <harley.acheson@gmail.com> | 2022-06-27 16:32:30 +0300 |
---|---|---|
committer | Harley Acheson <harley.acheson@gmail.com> | 2022-06-27 16:32:30 +0300 |
commit | 228d79b78977282fcfcfe95a24a97cd023f3dc3f (patch) | |
tree | e3bd0f654f3b87d8c34fab2a6a68d132445ac2b5 /source/blender/blenfont/intern/blf_font.c | |
parent | 6de0f299505a24969022cc2a63dd11db7b13b1be (diff) |
Revert 6de0f299505a: BLF: Support for Variable Fonts
Reverting for now, breaks on GCC
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); |