From cc66f39ce7b0d775d83e51df2f4157152cf47309 Mon Sep 17 00:00:00 2001 From: moi15moi <80980684+moi15moi@users.noreply.github.com> Date: Sun, 21 Jan 2024 17:41:54 -0500 Subject: [PATCH] Update mac_fonts.py --- find_system_fonts_filename/mac_fonts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/find_system_fonts_filename/mac_fonts.py b/find_system_fonts_filename/mac_fonts.py index c8e5987..7a44e30 100644 --- a/find_system_fonts_filename/mac_fonts.py +++ b/find_system_fonts_filename/mac_fonts.py @@ -69,7 +69,7 @@ def get_system_fonts_filename() -> Set[str]: font_descriptor = MacFonts._core_foundation.CFArrayGetValueAtIndex(font_array, i) font_format_ptr = MacFonts._core_text.CTFontDescriptorCopyAttribute(font_descriptor, MacFonts._kCTFontFormatAttribute) - font_format = CTFontFormat(font_format_ptr) + font_format = CTFontFormat(font_format_ptr.contents.value) MacFonts._core_foundation.CFRelease(font_format_ptr)