Mac Guides | Samples

MonoMac.CoreText.CTFontCollection Class

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

See Also: CTFontCollection

Syntax

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

Requirements

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

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

[read-only]
HandleIntPtr. Handle (pointer) to the unmanaged object representation.

Public Methods

Dispose()
Releases the resourced used by the CTFontCollection object.
Finalize()
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

Dispose(Boolean)
Releases the resourced used by the CTFontCollection object.