Platforms to show: All Mac Windows Linux Cross-Platform
CoreTextMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | CoreText | MBS MacCG Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Some global methods, constants and events for CoreText.
- 3 events
- event FontCollectionSortDescriptors(first as CTFontDescriptorMBS, second as CTFontDescriptorMBS, tag as Variant) as Integer
- event Progress(state as Integer, progressParameter as Dictionary, tag as Variant) as boolean
- event RequestFontsCompleted(unresolvedFontDescriptors() as CTFontDescriptorMBS, tag as variant) New in 25.0
- property AutoActivationSetting(BundleID as string) as Integer
- 3 methods
- method Constructor
- method Destructor
- method RequestFonts(descriptors() as CTFontDescriptorMBS, tag as variant = nil) New in 25.0
- 53 shared methods
- shared method AvailableFontFamilyNames as string()
- shared method AvailableFontURLs as string()
- shared method AvailablePostScriptNames as string()
- shared method CompareFontFamilyNames(name1 as string, name2 as string) as Integer
- shared method CoreTextVersion as Integer
- shared method CreateFontDescriptorFromData(data as memoryblock) as CTFontDescriptorMBS
- shared method CreateFontDescriptorFromData(data as string) as CTFontDescriptorMBS
- shared method CreateFontDescriptorsFromFile(file as folderitem) as CTFontDescriptorMBS()
- shared method CreateFontDescriptorsFromURL(URL as string) as CTFontDescriptorMBS()
- shared method EnableFontDescriptors(descriptors() as CTFontDescriptorMBS, enable as boolean)
- shared method GetScopeForFile(file as folderitem) as Integer
- shared method GetScopeForURL(URL as string) as Integer
- shared method IsSupportedFontFile(file as folderitem) as boolean
- shared method IsSupportedFontURL(URL as string) as boolean
- shared method kCTBaselineClassAttributeName as string
- shared method kCTBaselineInfoAttributeName as string
- shared method kCTBaselineReferenceInfoAttributeName as string
- shared method kCTCharacterShapeAttributeName as string
- shared method kCTFontAttributeName as string
- shared method kCTFontManagerBundleIdentifier as string
- shared method kCTFontManagerErrorDomain as string
- shared method kCTFontManagerErrorFontURLsKey as string
- shared method kCTFontManagerRegisteredFontsChangedNotification as string
- shared method kCTFontSlantTrait as string
- shared method kCTFontSymbolicTrait as string
- shared method kCTFontWeightTrait as string
- shared method kCTFontWidthTrait as string
- shared method kCTForegroundColorAttributeName as string
- shared method kCTForegroundColorFromContextAttributeName as string
- shared method kCTGlyphInfoAttributeName as string
- shared method kCTKernAttributeName as string
- shared method kCTLanguageAttributeName as string
- shared method kCTLigatureAttributeName as string
- shared method kCTParagraphStyleAttributeName as string
- shared method kCTRunDelegateAttributeName as string
- shared method kCTStrokeColorAttributeName as string
- shared method kCTStrokeWidthAttributeName as string
- shared method kCTSuperscriptAttributeName as string
- shared method kCTUnderlineColorAttributeName as string
- shared method kCTUnderlineStyleAttributeName as string
- shared method kCTVerticalFormsAttributeName as string
- shared method kCTWritingDirectionAttributeName as string
- shared method MatchFontDescriptorsWithProgressHandler(descriptors() as CTFontDescriptorMBS, mandatoryAttributes() as string, tag as Variant = nil) as boolean
- shared method RegisterFontsForFile(file as folderitem, scope as Integer, byref error as CFErrorMBS) as boolean
- shared method RegisterFontsForFiles(files() as folderitem, scope as Integer, errors() as CFErrorMBS) as boolean
- shared method RegisterFontsForURL(URL as string, scope as Integer, byref error as CFErrorMBS) as boolean
- shared method RegisterFontsForURL(URLs() as string, scope as Integer, errors() as CFErrorMBS) as boolean
- shared method RegisterGraphicsFont(font as CGFontMBS, byref error as CFErrorMBS) as boolean
- shared method UnregisterFontsForFile(file as folderitem, scope as Integer, byref error as CFErrorMBS) as boolean
- shared method UnregisterFontsForFiles(files() as folderitem, scope as Integer, errors() as CFErrorMBS) as boolean
- shared method UnregisterFontsForURL(URL as string, scope as Integer, byref error as CFErrorMBS) as boolean
- shared method UnregisterFontsForURLs(URLs() as string, scope as Integer, errors() as CFErrorMBS) as boolean
- shared method UnregisterGraphicsFont(font as CGFontMBS, byref error as CFErrorMBS) as boolean
- 57 constants
This class has no sub classes.
Some examples using this class:
- /MacCG/CoreText/CoreText Dynamic Text Height
- /MacCG/CoreText/CoreText Font Change Notification
- /MacCG/CoreText/CoreText Test
- /MacCG/CoreText/Fonts
Blog Entries
Release notes
- Version 25.0
- Added RequestFonts method to CoreTextMBS class.
- Fixed a problem with array handling affecting e.g. CoreTextMBS.RegisterFontsForURL function.
The items on this page are in the following plugins: MBS MacCG Plugin.
CoreAudioPlayerMBS - CPMLanguageInfoMBS
