Share via


CTFontDescriptor Class

Definition

Font Descriptors contain a description of font features that can identify a font.

public class CTFontDescriptor : CoreFoundation.NativeObject
type CTFontDescriptor = class
    inherit NativeObject
Inheritance

Remarks

Font Descriptors contain a description of font features and can completely identify a font. Sometimes the description is not complete enough, and the system will pick a font that matches the specified parameters.

var attributes = new CTFontDescriptorAttributes () {
	FamilyName = "Times New Roman",
	Size = 18
};

var fontDescriptor = new CTFontDescriptor (attributes);

Constructors

Name Description
CTFontDescriptor(CTFontDescriptorAttributes)

Creates a font descriptor from a set of attributes.

CTFontDescriptor(String, NFloat)

Properties

Name Description
Handle (Inherited from DisposableObject)
Owns (Inherited from DisposableObject)

Methods

Name Description
ClearHandle() (Inherited from DisposableObject)
Dispose() (Inherited from DisposableObject)
Dispose(Boolean) (Inherited from NativeObject)
Equals(Object) (Inherited from DisposableObject)
GetAttribute(NSString)

Fetches a CTFontDescriptorAttribute from the descriptor.

GetAttributes()

Retrieves the attributes from this CTFontDescriptor.

GetCheckedHandle() (Inherited from DisposableObject)
GetHashCode() (Inherited from DisposableObject)
GetLocalizedAttribute(NSString, NSString)

Returns an attribute that has been localized.

GetLocalizedAttribute(NSString)

Returns an attribute that has been localized.

GetMatchingFontDescriptor()
GetMatchingFontDescriptor(NSSet)
GetMatchingFontDescriptor(NSString[])
GetMatchingFontDescriptors()
GetMatchingFontDescriptors(NSSet)
GetMatchingFontDescriptors(NSString[])
InitializeHandle(NativeHandle) (Inherited from DisposableObject)
MatchFontDescriptors(CTFontDescriptor[], NSSet, CTFontDescriptor+CTFontDescriptorProgressHandler)
MatchFontDescriptors(CTFontDescriptor[], NSSet, Func<CTFontDescriptorMatchingState,IntPtr,Boolean>)
Release() (Inherited from NativeObject)
Retain() (Inherited from NativeObject)
WithAttributes(CTFontDescriptorAttributes)
WithAttributes(NSDictionary)
WithFeature(CTFontFeatureAllTypographicFeatures+Selector)

Creates a font descriptor from this font descriptor, with the specified feature set.

WithFeature(CTFontFeatureAlternateKana+Selector)

Creates a font descriptor from this font descriptor, with the specified feature set.

WithFeature(CTFontFeatureAnnotation+Selector)

Creates a font descriptor from this font descriptor, with the specified feature set.

WithFeature(CTFontFeatureCaseSensitiveLayout+Selector)

Creates a font descriptor from this font descriptor, with the specified feature set.

WithFeature(CTFontFeatureCharacterAlternatives+Selector)

Creates a font descriptor from this font descriptor, with the specified feature set.

WithFeature(CTFontFeatureCharacterShape+Selector)

Creates a font descriptor from this font descriptor, with the specified feature set.

WithFeature(CTFontFeatureCJKRomanSpacing+Selector)

Creates a font descriptor from this font descriptor, with the specified feature set.

WithFeature(CTFontFeatureCJKSymbolAlternatives+Selector)

Creates a font descriptor from this font descriptor, with the specified feature set.

WithFeature(CTFontFeatureCJKVerticalRomanPlacement+Selector)

Creates a font descriptor from this font descriptor, with the specified feature set.

WithFeature(CTFontFeatureContextualAlternates+Selector)

Creates a font descriptor from this font descriptor, with the specified feature set.

WithFeature(CTFontFeatureCursiveConnection+Selector)

Creates a font descriptor from this font descriptor, with the specified feature set.

WithFeature(CTFontFeatureDesignComplexity+Selector)

Creates a font descriptor from this font descriptor, with the specified feature set.

WithFeature(CTFontFeatureDiacritics+Selector)

Creates a font descriptor from this font descriptor, with the specified feature set.

WithFeature(CTFontFeatureFractions+Selector)

Creates a font descriptor from this font descriptor, with the specified feature set.

WithFeature(CTFontFeatureIdeographicAlternatives+Selector)

Creates a font descriptor from this font descriptor, with the specified feature set.

WithFeature(CTFontFeatureIdeographicSpacing+Selector)

Creates a font descriptor from this font descriptor, with the specified feature set.

WithFeature(CTFontFeatureItalicCJKRoman+Selector)

Creates a font descriptor from this font descriptor, with the specified feature set.

WithFeature(CTFontFeatureKanaSpacing+Selector)

Creates a font descriptor from this font descriptor, with the specified feature set.

WithFeature(CTFontFeatureLigatures+Selector)

Creates a font descriptor from this font descriptor, with the specified feature set.

WithFeature(CTFontFeatureLinguisticRearrangementConnection+Selector)

Creates a font descriptor from this font descriptor, with the specified feature set.

WithFeature(CTFontFeatureLowerCase+Selector)

Creates a font descriptor from this font descriptor, with the specified feature set.

WithFeature(CTFontFeatureMathematicalExtras+Selector)

Creates a font descriptor from this font descriptor, with the specified feature set.

WithFeature(CTFontFeatureNumberCase+Selector)

Creates a font descriptor from this font descriptor, with the specified feature set.

WithFeature(CTFontFeatureNumberSpacing+Selector)

Creates a font descriptor from this font descriptor, with the specified feature set.

WithFeature(CTFontFeatureOrnamentSets+Selector)

Creates a font descriptor from this font descriptor, with the specified feature set.

WithFeature(CTFontFeatureOverlappingCharacters+Selector)

Creates a font descriptor from this font descriptor, with the specified feature set.

WithFeature(CTFontFeatureRubyKana+Selector)

Creates a font descriptor from this font descriptor, with the specified feature set.

WithFeature(CTFontFeatureSmartSwash+Selector)

Creates a font descriptor from this font descriptor, with the specified feature set.

WithFeature(CTFontFeatureStyleOptions+Selector)

Creates a font descriptor from this font descriptor, with the specified feature set.

WithFeature(CTFontFeatureStylisticAlternatives+Selector)

Creates a font descriptor from this font descriptor, with the specified feature set.

WithFeature(CTFontFeatureTextSpacing+Selector)

Creates a font descriptor from this font descriptor, with the specified feature set.

WithFeature(CTFontFeatureTransliteration+Selector)

Creates a font descriptor from this font descriptor, with the specified feature set.

WithFeature(CTFontFeatureTypographicExtras+Selector)

Creates a font descriptor from this font descriptor, with the specified feature set.

WithFeature(CTFontFeatureUnicodeDecomposition+Selector)

Creates a font descriptor from this font descriptor, with the specified feature set.

WithFeature(CTFontFeatureUpperCase+Selector)

Creates a font descriptor from this font descriptor, with the specified feature set.

WithFeature(CTFontFeatureVerticalPosition+Selector)

Creates a font descriptor from this font descriptor, with the specified feature set.

WithFeature(CTFontFeatureVerticalSubstitutionConnection+Selector)

Creates a font descriptor from this font descriptor, with the specified feature set.

WithVariation(UInt32, NFloat)

Extension Methods

Name Description
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)

Applies to