Mac Guides | Samples

MonoMac.CoreText.CTFontDescriptor Class

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

See Also: CTFontDescriptor

Syntax

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

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.

c# Example

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

var fontDescriptor = new CTFontDescriptor (attributes);

Requirements

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

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

See Also: Object

Public Constructors

Creates a font descriptor from a set of attributes.
Creates a font descriptor from a PostScript name (and optional size).

Public Properties

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

Public Methods

Dispose()
Releases the resourced used by the CTFontDescriptor object.
Finalize()
Finalizer for the CTFontDescriptor object
GetAttribute(NSString) : NSObject
Fetches a CTFontDescriptorAttribute from the descriptor.
GetAttributes() : CTFontDescriptorAttributes
Retrieves the attributes from this CTFontDescriptor.
GetLocalizedAttribute(NSString) : NSObject
Returns an attribute that has been localized.
GetLocalizedAttribute(NSString, out NSString) : NSObject
Returns an attribute that has been localized.
GetMatchingFontDescriptor() : CTFontDescriptor
GetMatchingFontDescriptor(NSSet) : CTFontDescriptor
GetMatchingFontDescriptor(params NSString[]) : CTFontDescriptor
GetMatchingFontDescriptors() : CTFontDescriptor[]
GetMatchingFontDescriptors(NSSet) : CTFontDescriptor[]
GetMatchingFontDescriptors(params NSString[]) : CTFontDescriptor[]
static
MatchFontDescriptors(CTFontDescriptor[], NSSet, Func<CTFontDescriptorMatchingState, IntPtr, bool>) : Boolean
WithAttributes(CTFontDescriptorAttributes) : CTFontDescriptor
WithAttributes(NSDictionary) : CTFontDescriptor
WithFeature(CTFontFeatureAllTypographicFeatures+Selector) : CTFontDescriptor
Creates a font descriptor from this font descriptor, with the specified feature set.
WithFeature(CTFontFeatureAlternateKana+Selector) : CTFontDescriptor
Creates a font descriptor from this font descriptor, with the specified feature set.
WithFeature(CTFontFeatureAnnotation+Selector) : CTFontDescriptor
Creates a font descriptor from this font descriptor, with the specified feature set.
WithFeature(CTFontFeatureCaseSensitiveLayout+Selector) : CTFontDescriptor
Creates a font descriptor from this font descriptor, with the specified feature set.
WithFeature(CTFontFeatureCharacterAlternatives+Selector) : CTFontDescriptor
Creates a font descriptor from this font descriptor, with the specified feature set.
WithFeature(CTFontFeatureCharacterShape+Selector) : CTFontDescriptor
Creates a font descriptor from this font descriptor, with the specified feature set.
WithFeature(CTFontFeatureCJKRomanSpacing+Selector) : CTFontDescriptor
Creates a font descriptor from this font descriptor, with the specified feature set.
WithFeature(CTFontFeatureCJKSymbolAlternatives+Selector) : CTFontDescriptor
Creates a font descriptor from this font descriptor, with the specified feature set.
WithFeature(CTFontFeatureCJKVerticalRomanPlacement+Selector) : CTFontDescriptor
Creates a font descriptor from this font descriptor, with the specified feature set.
WithFeature(CTFontFeatureContextualAlternates+Selector) : CTFontDescriptor
Creates a font descriptor from this font descriptor, with the specified feature set.
WithFeature(CTFontFeatureCursiveConnection+Selector) : CTFontDescriptor
Creates a font descriptor from this font descriptor, with the specified feature set.
WithFeature(CTFontFeatureDesignComplexity+Selector) : CTFontDescriptor
Creates a font descriptor from this font descriptor, with the specified feature set.
WithFeature(CTFontFeatureDiacritics+Selector) : CTFontDescriptor
Creates a font descriptor from this font descriptor, with the specified feature set.
WithFeature(CTFontFeatureFractions+Selector) : CTFontDescriptor
Creates a font descriptor from this font descriptor, with the specified feature set.
WithFeature(CTFontFeatureIdeographicAlternatives+Selector) : CTFontDescriptor
Creates a font descriptor from this font descriptor, with the specified feature set.
WithFeature(CTFontFeatureIdeographicSpacing+Selector) : CTFontDescriptor
Creates a font descriptor from this font descriptor, with the specified feature set.
WithFeature(CTFontFeatureItalicCJKRoman+Selector) : CTFontDescriptor
Creates a font descriptor from this font descriptor, with the specified feature set.
WithFeature(CTFontFeatureKanaSpacing+Selector) : CTFontDescriptor
Creates a font descriptor from this font descriptor, with the specified feature set.
WithFeature(CTFontFeatureLetterCase+Selector) : CTFontDescriptor
Creates a font descriptor from this font descriptor, with the specified feature set.
WithFeature(CTFontFeatureLigatures+Selector) : CTFontDescriptor
Creates a font descriptor from this font descriptor, with the specified feature set.
WithFeature(CTFontFeatureLinguisticRearrangementConnection+Selector) : CTFontDescriptor
Creates a font descriptor from this font descriptor, with the specified feature set.
WithFeature(CTFontFeatureLowerCase+Selector) : CTFontDescriptor
Creates a font descriptor from this font descriptor, with the specified feature set.
WithFeature(CTFontFeatureMathematicalExtras+Selector) : CTFontDescriptor
Creates a font descriptor from this font descriptor, with the specified feature set.
WithFeature(CTFontFeatureNumberCase+Selector) : CTFontDescriptor
Creates a font descriptor from this font descriptor, with the specified feature set.
WithFeature(CTFontFeatureNumberSpacing+Selector) : CTFontDescriptor
Creates a font descriptor from this font descriptor, with the specified feature set.
WithFeature(CTFontFeatureOrnamentSets+Selector) : CTFontDescriptor
Creates a font descriptor from this font descriptor, with the specified feature set.
WithFeature(CTFontFeatureOverlappingCharacters+Selector) : CTFontDescriptor
Creates a font descriptor from this font descriptor, with the specified feature set.
WithFeature(CTFontFeatureRubyKana+Selector) : CTFontDescriptor
Creates a font descriptor from this font descriptor, with the specified feature set.
WithFeature(CTFontFeatureSmartSwash+Selector) : CTFontDescriptor
Creates a font descriptor from this font descriptor, with the specified feature set.
WithFeature(CTFontFeatureStyleOptions+Selector) : CTFontDescriptor
Creates a font descriptor from this font descriptor, with the specified feature set.
WithFeature(CTFontFeatureStylisticAlternatives+Selector) : CTFontDescriptor
Creates a font descriptor from this font descriptor, with the specified feature set.
WithFeature(CTFontFeatureTextSpacing+Selector) : CTFontDescriptor
Creates a font descriptor from this font descriptor, with the specified feature set.
WithFeature(CTFontFeatureTransliteration+Selector) : CTFontDescriptor
Creates a font descriptor from this font descriptor, with the specified feature set.
WithFeature(CTFontFeatureTypographicExtras+Selector) : CTFontDescriptor
Creates a font descriptor from this font descriptor, with the specified feature set.
WithFeature(CTFontFeatureUnicodeDecomposition+Selector) : CTFontDescriptor
Creates a font descriptor from this font descriptor, with the specified feature set.
WithFeature(CTFontFeatureUpperCase+Selector) : CTFontDescriptor
Creates a font descriptor from this font descriptor, with the specified feature set.
WithFeature(CTFontFeatureVerticalPosition+Selector) : CTFontDescriptor
Creates a font descriptor from this font descriptor, with the specified feature set.
WithFeature(CTFontFeatureVerticalSubstitutionConnection+Selector) : CTFontDescriptor
Creates a font descriptor from this font descriptor, with the specified feature set.
WithFeature(NSNumber, NSNumber) : CTFontDescriptor
Creates a font descriptor from this font descriptor, with the specified feature set.
WithVariation(UInt32, Single) : CTFontDescriptor

Protected Methods

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