@@ -57,87 +57,87 @@ def __init__(self) -> None:
5757
5858 # https://www.freedesktop.org/software/fontconfig/fontconfig-devel/fcinitloadconfigandfonts.html
5959 self .FcInitLoadConfigAndFonts = font_config .FcInitLoadConfigAndFonts
60- self .FcInitLoadConfigAndFonts .restype = c_void_p
61- self .FcInitLoadConfigAndFonts .argtypes = []
60+ # self.FcInitLoadConfigAndFonts.restype = c_void_p
61+ # self.FcInitLoadConfigAndFonts.argtypes = []
6262
6363 # https://www.freedesktop.org/software/fontconfig/fontconfig-devel/fcpatterncreate.html
6464 self .FcPatternCreate = font_config .FcPatternCreate
65- self .FcPatternCreate .restype = c_void_p
66- self .FcPatternCreate .argtypes = []
65+ # self.FcPatternCreate.restype = c_void_p
66+ # self.FcPatternCreate.argtypes = []
6767
6868 # https://www.freedesktop.org/software/fontconfig/fontconfig-devel/fcobjectsetbuild.html
6969 self .FcObjectSetBuild = font_config .FcObjectSetBuild
70- self .FcObjectSetBuild .restype = c_void_p
71- self .FcObjectSetBuild .argtypes = [c_char_p , c_void_p ]
70+ # self.FcObjectSetBuild.restype = c_void_p
71+ # self.FcObjectSetBuild.argtypes = [c_char_p, c_void_p]
7272
7373 # https://www.freedesktop.org/software/fontconfig/fontconfig-devel/fcfontlist.html
7474 self .FcFontList = font_config .FcFontList
75- self .FcFontList .restype = POINTER (FcFontSet )
76- self .FcFontList .argtypes = [c_void_p , c_void_p , c_void_p ]
75+ # self.FcFontList.restype = POINTER(FcFontSet)
76+ # self.FcFontList.argtypes = [c_void_p, c_void_p, c_void_p]
7777
7878 # https://www.freedesktop.org/software/fontconfig/fontconfig-devel/fcpatternget-type.html
7979 self .FcPatternGetString = font_config .FcPatternGetString
80- self .FcPatternGetString .restype = FC_RESULT
81- self .FcPatternGetString .argtypes = [c_void_p , c_char_p , c_int , POINTER (c_char_p )]
80+ # self.FcPatternGetString.restype = FC_RESULT
81+ # self.FcPatternGetString.argtypes = [c_void_p, c_char_p, c_int, POINTER(c_char_p)]
8282
8383 # https://www.freedesktop.org/software/fontconfig/fontconfig-devel/fcconfigdestroy.html
8484 self .FcConfigDestroy = font_config .FcConfigDestroy
85- self .FcConfigDestroy .restype = None
86- self .FcConfigDestroy .argtypes = [c_void_p ]
85+ # self.FcConfigDestroy.restype = None
86+ # self.FcConfigDestroy.argtypes = [c_void_p]
8787
8888 # https://www.freedesktop.org/software/fontconfig/fontconfig-devel/fcpatterndestroy.html
8989 self .FcPatternDestroy = font_config .FcPatternDestroy
90- self .FcPatternDestroy .restype = None
91- self .FcPatternDestroy .argtypes = [c_void_p ]
90+ # self.FcPatternDestroy.restype = None
91+ # self.FcPatternDestroy.argtypes = [c_void_p]
9292
9393 # https://www.freedesktop.org/software/fontconfig/fontconfig-devel/fcobjectsetdestroy.html
9494 self .FcObjectSetDestroy = font_config .FcObjectSetDestroy
95- self .FcObjectSetDestroy .restype = None
96- self .FcObjectSetDestroy .argtypes = [c_void_p ]
95+ # self.FcObjectSetDestroy.restype = None
96+ # self.FcObjectSetDestroy.argtypes = [c_void_p]
9797
9898 # https://www.freedesktop.org/software/fontconfig/fontconfig-devel/fcfontsetdestroy.html
9999 self .FcFontSetDestroy = font_config .FcFontSetDestroy
100- self .FcFontSetDestroy .restype = None
101- self .FcFontSetDestroy .argtypes = [c_void_p ]
100+ # self.FcFontSetDestroy.restype = None
101+ # self.FcFontSetDestroy.argtypes = [c_void_p]
102102
103103 # https://fontconfig.pages.freedesktop.org/fontconfig/fontconfig-devel/fcconfiggetfontdirs.html
104104 self .FcConfigGetFontDirs = font_config .FcConfigGetFontDirs
105- self .FcConfigGetFontDirs .restype = c_void_p
106- self .FcConfigGetFontDirs .argtypes = [c_void_p ]
105+ # self.FcConfigGetFontDirs.restype = c_void_p
106+ # self.FcConfigGetFontDirs.argtypes = [c_void_p]
107107
108108 # Introduced in 2.11.0
109109 if hasattr (font_config , "FcStrListFirst" ):
110110 # https://fontconfig.pages.freedesktop.org/fontconfig/fontconfig-devel/fcstrlistfirst.html
111111 self .FcStrListFirst = font_config .FcStrListFirst
112- self .FcStrListFirst .restype = None
113- self .FcStrListFirst .argtypes = [c_void_p ]
112+ # self.FcStrListFirst.restype = None
113+ # self.FcStrListFirst.argtypes = [c_void_p]
114114
115115 # https://fontconfig.pages.freedesktop.org/fontconfig/fontconfig-devel/fcstrlistnext.html
116116 self .FcStrListNext = font_config .FcStrListNext
117- self .FcStrListNext .restype = c_char_p
118- self .FcStrListNext .argtypes = [c_void_p ]
117+ # self.FcStrListNext.restype = c_char_p
118+ # self.FcStrListNext.argtypes = [c_void_p]
119119
120120 # https://fontconfig.pages.freedesktop.org/fontconfig/fontconfig-devel/fcstrlistdone.html
121121 self .FcStrListDone = font_config .FcStrListDone
122- self .FcStrListDone .restype = None
123- self .FcStrListDone .argtypes = [c_void_p ]
122+ # self.FcStrListDone.restype = None
123+ # self.FcStrListDone.argtypes = [c_void_p]
124124
125125 # https://fontconfig.pages.freedesktop.org/fontconfig/fontconfig-devel/fcconfiggetcurrent.html
126126 self .FcConfigGetCurrent = font_config .FcConfigGetCurrent
127- self .FcConfigGetCurrent .restype = c_void_p
128- self .FcConfigGetCurrent .argtypes = []
127+ # self.FcConfigGetCurrent.restype = c_void_p
128+ # self.FcConfigGetCurrent.argtypes = []
129129
130130 # Introduced in 2.11.1
131131 if hasattr (font_config , "FcDirCacheRescan" ):
132132 # https://fontconfig.pages.freedesktop.org/fontconfig/fontconfig-devel/fcdircacherescan.html
133133 self .FcDirCacheRescan = font_config .FcDirCacheRescan
134- self .FcDirCacheRescan .restype = c_void_p
135- self .FcDirCacheRescan .argtypes = [c_char_p , c_void_p ]
134+ # self.FcDirCacheRescan.restype = c_void_p
135+ # self.FcDirCacheRescan.argtypes = [c_char_p, c_void_p]
136136
137137 # https://fontconfig.pages.freedesktop.org/fontconfig/fontconfig-devel/fcgetversion.html
138138 self .FcGetVersion = font_config .FcGetVersion
139- self .FcGetVersion .restype = c_int
140- self .FcGetVersion .argtypes = []
139+ # self.FcGetVersion.restype = c_int
140+ # self.FcGetVersion.argtypes = []
141141
142142
143143 @staticmethod
0 commit comments