Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
fontconfig
fontconfig
Commits
94683a12
Commit
94683a12
authored
Jan 08, 2018
by
Behdad Esfahbod
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use FT_Done_MM_Var if available
parent
97488fd7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
configure.ac
configure.ac
+1
-1
src/fcfreetype.c
src/fcfreetype.c
+4
-0
No files found.
configure.ac
View file @
94683a12
...
...
@@ -320,7 +320,7 @@ fontconfig_save_libs="$LIBS"
fontconfig_save_cflags="$CFLAGS"
LIBS="$LIBS $FREETYPE_LIBS"
CFLAGS="$CFLAGS $FREETYPE_CFLAGS"
AC_CHECK_FUNCS(FT_Get_BDF_Property FT_Get_PS_Font_Info FT_Has_PS_Glyph_Names FT_Get_X11_Font_Format)
AC_CHECK_FUNCS(FT_Get_BDF_Property FT_Get_PS_Font_Info FT_Has_PS_Glyph_Names FT_Get_X11_Font_Format
FT_Done_MM_Var
)
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
#include <ft2build.h>
...
...
src/fcfreetype.c
View file @
94683a12
...
...
@@ -2170,7 +2170,11 @@ skip:
}
while
(
!
err
&&
(
!
index_set
||
face_num
==
set_face_num
)
&&
face_num
<
num_faces
);
bail:
#ifdef HAVE_FT_DONE_MM_VAR
FT_Done_MM_Var
(
ftLibrary
,
mm_var
);
#else
free
(
mm_var
);
#endif
FcLangSetDestroy
(
ls
);
FcCharSetDestroy
(
cs
);
if
(
face
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment