Edytuj

Udostępnij za pośrednictwem


CTFontDescriptor Class

Definition

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

public class CTFontDescriptor : IDisposable, ObjCRuntime.INativeObject
type CTFontDescriptor = class
    interface INativeObject
    interface IDisposable
Inheritance
CTFontDescriptor
Implements

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

CTFontDescriptor(CTFontDescriptorAttributes)

Creates a font descriptor from a set of attributes.

CTFontDescriptor(String, nfloat)

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

Properties

Handle

Handle (pointer) to the unmanaged object representation.

Methods

Dispose()

Releases the resources used by the CTFontDescriptor object.

Dispose(Boolean)

Releases the resources used by the CTFontDescriptor object.

Finalize()

Finalizer for the CTFontDescriptor object

GetAttribute(NSString)

Fetches a CTFontDescriptorAttribute from the descriptor.

GetAttributes()

Retrieves the attributes from this CTFontDescriptor.

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[])
MatchFontDescriptors(CTFontDescriptor[], NSSet, Func<CTFontDescriptorMatchingState,IntPtr,Boolean>)
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)

Applies to