Skip to content

Commit

Permalink
Fix FreeType support for version 2.8 and lower
Browse files Browse the repository at this point in the history
  • Loading branch information
mikke89 committed May 11, 2022
1 parent 1117da4 commit 13b406e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/Core/FontEngineDefault/FreeTypeInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,10 @@ bool FreeType::GetFaceVariations(const byte* data, int data_length, Vector<FaceV

std::sort(out_face_variations.begin(), out_face_variations.end());

#if FREETYPE_MAJOR >= 2 && FREETYPE_MINOR >= 9
FT_Done_MM_Var(ft_library, var);
#endif

FT_Done_Face(face);

return true;
Expand Down

0 comments on commit 13b406e

Please sign in to comment.