Mac Guides | Samples

MonoMac.CoreText.CTFontCollection Class

Font collections are the standard mechanism used to enumerate fonts descriptors.

See Also: CTFontCollection


[MonoMac.ObjCRuntime.Since(3, 2)]
public class CTFontCollection : INativeObject, IDisposable


Namespace: MonoMac.CoreText
Assembly: XamMac (in XamMac.dll)
Assembly Versions:

The members of MonoMac.CoreText.CTFontCollection are listed below.

See Also: Object

Public Constructors

Creates a CTFontCollection that contains all of the available font descriptors.
Creates a CTFontCollection from the specified set of queryDescriptors.

Public Properties

HandleIntPtr. Handle (pointer) to the unmanaged object representation.

Public Methods

Releases the resourced used by the CTFontCollection object.
Finalizer for the CTFontCollection object
GetMatchingFontDescriptors() : CTFontDescriptor[]
Gets the mathching font descriptors from this collection.
GetMatchingFontDescriptors(Comparison<CTFontDescriptor>) : CTFontDescriptor[]
Gets an array of font descriptors sorted by the specified sorting function.
WithFontDescriptors(CTFontDescriptor[], CTFontCollectionOptions) : CTFontCollection
Creates a copy of the CTFontCollection while adding the specified font descriptors.

Protected Methods

Releases the resourced used by the CTFontCollection object.