Get meta-info from UIFont or CGFont - iOS, Swift
I want to get meta info from fonts. For example: supported languages, version, license etc. How can I do this? It works fine on Mac Fonts app. I need to implement this on iOS. You can get much of that information using CTFontCopyName . For example, you can print the font's copyright and license like this: print(CTFontCopyName(font, kCTFontCopyrightNameKey)) print(CTFontCopyName(font, kCTFontLicenseNameKey)) The key constants are of the format kCTFont***NameKey and are declared in CTFont.h. You can get the supported languages using CTFontCopySupportedLanguages , but you get a list of BCP-47