Skip to content

Commit 62e7315

Browse files
authored
Comment out function signatures in core_text.py
Comment out restype and argtypes for font-related functions.
1 parent a9aff65 commit 62e7315

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

find_system_fonts_filename/mac/core_text.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,30 +42,30 @@ def __init__(self) -> None:
4242

4343
# https://developer.apple.com/documentation/coretext/1509907-ctfontcollectioncreatefromavaila?language=objc
4444
self.CTFontCollectionCreateFromAvailableFonts = core_text.CTFontCollectionCreateFromAvailableFonts
45-
self.CTFontCollectionCreateFromAvailableFonts.restype = c_void_p
46-
self.CTFontCollectionCreateFromAvailableFonts.argtypes = [c_void_p]
45+
#self.CTFontCollectionCreateFromAvailableFonts.restype = c_void_p
46+
#self.CTFontCollectionCreateFromAvailableFonts.argtypes = [c_void_p]
4747

4848
# https://developer.apple.com/documentation/coretext/1511091-ctfontcollectioncreatematchingfo?language=objc
4949
self.CTFontCollectionCreateMatchingFontDescriptors = core_text.CTFontCollectionCreateMatchingFontDescriptors
50-
self.CTFontCollectionCreateMatchingFontDescriptors.restype = c_void_p
51-
self.CTFontCollectionCreateMatchingFontDescriptors.argtypes = [c_void_p]
50+
#self.CTFontCollectionCreateMatchingFontDescriptors.restype = c_void_p
51+
#self.CTFontCollectionCreateMatchingFontDescriptors.argtypes = [c_void_p]
5252

5353
# https://developer.apple.com/documentation/coretext/1510346-ctfontdescriptorcopyattribute?language=objc
5454
self.CTFontDescriptorCopyAttribute = core_text.CTFontDescriptorCopyAttribute
55-
self.CTFontDescriptorCopyAttribute.restype = c_void_p
56-
self.CTFontDescriptorCopyAttribute.argtypes = [c_void_p, c_void_p]
55+
#self.CTFontDescriptorCopyAttribute.restype = c_void_p
56+
#self.CTFontDescriptorCopyAttribute.argtypes = [c_void_p, c_void_p]
5757

5858
# https://developer.apple.com/documentation/corefoundation/1541581-cfurlcopyfilesystempath?language=objc
5959
self.CFURLCopyFileSystemPath = core_text.CFURLCopyFileSystemPath
60-
self.CFURLCopyFileSystemPath.restype = c_void_p
61-
self.CFURLCopyFileSystemPath.argtypes = [c_void_p, CFIndex]
60+
#self.CFURLCopyFileSystemPath.restype = c_void_p
61+
#self.CFURLCopyFileSystemPath.argtypes = [c_void_p, CFIndex]
6262

6363
# https://developer.apple.com/documentation/coretext/1499468-ctfontmanagerregisterfontsforurl?language=objc
6464
self.CTFontManagerRegisterFontsForURL = core_text.CTFontManagerRegisterFontsForURL
65-
self.CTFontManagerRegisterFontsForURL.restype = c_bool
66-
self.CTFontManagerRegisterFontsForURL.argtypes = [c_void_p, c_uint32, c_void_p]
65+
#self.CTFontManagerRegisterFontsForURL.restype = c_bool
66+
#self.CTFontManagerRegisterFontsForURL.argtypes = [c_void_p, c_uint32, c_void_p]
6767

6868
# https://developer.apple.com/documentation/coretext/1499496-ctfontmanagerunregisterfontsforu?language=objc
6969
self.CTFontManagerUnregisterFontsForURL = core_text.CTFontManagerUnregisterFontsForURL
70-
self.CTFontManagerUnregisterFontsForURL.restype = c_bool
71-
self.CTFontManagerUnregisterFontsForURL.argtypes = [c_void_p, c_uint32, c_void_p]
70+
#self.CTFontManagerUnregisterFontsForURL.restype = c_bool
71+
#self.CTFontManagerUnregisterFontsForURL.argtypes = [c_void_p, c_uint32, c_void_p]

0 commit comments

Comments
 (0)