Skip to content

Commit e369aa1

Browse files
committed
[linux_fonts] Add fontconfig missing definition method
1 parent 6e57b4e commit e369aa1

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

find_system_fonts_filename/linux_fonts.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,19 @@ def _load_font_config_library():
110110
# https://www.freedesktop.org/software/fontconfig/fontconfig-devel/fcpatternget-type.html
111111
LinuxFonts._font_config.FcPatternGetString.restype = FC_RESULT
112112
LinuxFonts._font_config.FcPatternGetString.argtypes = [c_void_p, c_char_p, c_int, POINTER(c_char_p)]
113+
114+
# https://www.freedesktop.org/software/fontconfig/fontconfig-devel/fcconfigdestroy.html
115+
LinuxFonts._font_config.FcConfigDestroy.restype = None
116+
LinuxFonts._font_config.FcConfigDestroy.argtypes = [c_void_p]
117+
118+
# https://www.freedesktop.org/software/fontconfig/fontconfig-devel/fcpatterndestroy.html
119+
LinuxFonts._font_config.FcPatternDestroy.restype = None
120+
LinuxFonts._font_config.FcPatternDestroy.argtypes = [c_void_p]
121+
122+
# https://www.freedesktop.org/software/fontconfig/fontconfig-devel/fcobjectsetdestroy.html
123+
LinuxFonts._font_config.FcObjectSetDestroy.restype = None
124+
LinuxFonts._font_config.FcObjectSetDestroy.argtypes = [c_void_p]
125+
126+
# https://www.freedesktop.org/software/fontconfig/fontconfig-devel/fcfontsetdestroy.html
127+
LinuxFonts._font_config.FcFontSetDestroy.restype = None
128+
LinuxFonts._font_config.FcFontSetDestroy.argtypes = [c_void_p]

0 commit comments

Comments
 (0)