CTFontCollection.GetMatchingFontDescriptors Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetMatchingFontDescriptors() |
Gets the mathching font descriptors from this collection. |
GetMatchingFontDescriptors(CTFontCollectionOptions) |
Returns an array of font descriptors that have the specified options. |
GetMatchingFontDescriptors(Comparison<CTFontDescriptor>) |
Gets an array of font descriptors sorted by the specified sorting function. |
GetMatchingFontDescriptors()
Gets the mathching font descriptors from this collection.
public CoreText.CTFontDescriptor[] GetMatchingFontDescriptors ();
member this.GetMatchingFontDescriptors : unit -> CoreText.CTFontDescriptor[]
Returns
An array of font descriptors.
Applies to
GetMatchingFontDescriptors(CTFontCollectionOptions)
Returns an array of font descriptors that have the specified options.
[ObjCRuntime.TV(12, 0)]
[ObjCRuntime.Watch(5, 0)]
public CoreText.CTFontDescriptor[] GetMatchingFontDescriptors (CoreText.CTFontCollectionOptions options);
member this.GetMatchingFontDescriptors : CoreText.CTFontCollectionOptions -> CoreText.CTFontDescriptor[]
Parameters
- options
- CTFontCollectionOptions
The options to match.
Returns
An array of font descriptors that have the specified options.
- Attributes
Applies to
GetMatchingFontDescriptors(Comparison<CTFontDescriptor>)
Gets an array of font descriptors sorted by the specified sorting function.
public CoreText.CTFontDescriptor[] GetMatchingFontDescriptors (Comparison<CoreText.CTFontDescriptor> comparer);
member this.GetMatchingFontDescriptors : Comparison<CoreText.CTFontDescriptor> -> CoreText.CTFontDescriptor[]
Parameters
- comparer
- Comparison<CTFontDescriptor>
Sorting method.
Returns
An array of font descriptors.