@@ -65,18 +65,23 @@ def _load_core_library():
6565
6666 CFIndex = c_long
6767
68+ # https://developer.apple.com/documentation/corefoundation/1521153-cfrelease
6869 MacFonts ._core_foundation .CFRelease .restype = c_void_p
6970 MacFonts ._core_foundation .CFRelease .argtypes = [c_void_p ]
7071
72+ # https://developer.apple.com/documentation/corefoundation/1388772-cfarraygetcount?language=objc
7173 MacFonts ._core_foundation .CFArrayGetCount .restype = CFIndex
7274 MacFonts ._core_foundation .CFArrayGetCount .argtypes = [c_void_p ]
7375
76+ # https://developer.apple.com/documentation/corefoundation/1388767-cfarraygetvalueatindex?language=objc
7477 MacFonts ._core_foundation .CFArrayGetValueAtIndex .restype = c_void_p
7578 MacFonts ._core_foundation .CFArrayGetValueAtIndex .argtypes = [c_void_p , CFIndex ]
7679
80+ # https://developer.apple.com/documentation/corefoundation/1541515-cfurlgetfilesystemrepresentation?language=objc
7781 MacFonts ._core_foundation .CFURLGetFileSystemRepresentation .restype = c_bool
7882 MacFonts ._core_foundation .CFURLGetFileSystemRepresentation .argtypes = [c_void_p , c_bool , c_char_p , CFIndex ]
7983
84+ # https://developer.apple.com/documentation/coretext/1499478-ctfontmanagercopyavailablefontur?language=objc
8085 MacFonts ._core_text .CTFontManagerCopyAvailableFontURLs .restype = c_void_p
8186 MacFonts ._core_text .CTFontManagerCopyAvailableFontURLs .argtypes = []
8287
@@ -97,4 +102,4 @@ def is_mac_version_or_greater(minimum_major: int, minimum_minor: int) -> bool:
97102 system_major = int (system_major )
98103 system_minor = int (system_minor )
99104
100- return minimum_major > system_major or (system_major == minimum_major and system_minor >= minimum_minor )
105+ return system_major > minimum_major or (system_major == minimum_major and system_minor >= minimum_minor )
0 commit comments