UIFontFeature Class

Definition

Represents a single typographic or font layout feature.

public class UIFontFeature : ObjCRuntime.INativeObject
type UIFontFeature = class
    interface INativeObject
Inheritance
UIFontFeature
Implements

Remarks

The UIFontFeature represents a specific typographic or font layout feature set to a particular value. These objects are both strongly typed and immutable and intended to assist developers in choosing which features to enable in a font by providing strong types for them.

Instances of these objects are created to be part of an array of desired features when creating a UIFontAttributes. For example:

UIFont CustomizeFont (UIFont font)
{
    var originalDescriptor = font.FontDescriptor;
    var attributes = new UIFontAttributes (
        new UIFontFeature (CTFontFeatureNumberSpacing.Selector.ProportionalNumbers),
	new UIFontFeature ((CTFontFeatureCharacterAlternatives.Selector)1));
    var newDesc = originalDescriptor.CreateWithAttributes (attributes);
    return UIFont.FromDescriptor (newDesc, 80);
}

Constructors

UIFontFeature(CTFontFeatureAllTypographicFeatures+Selector)

Creates a new UIFontFeature that describes a CoreText CTFontFeatureAllTypographicFeatures with the given value.

UIFontFeature(CTFontFeatureAlternateKana+Selector)

Creates a new UIFontFeature that describes a CoreText CTFontFeatureAlternateKana with the given value.

UIFontFeature(CTFontFeatureAnnotation+Selector)

Creates a new UIFontFeature that describes a CoreText CTFontFeatureAnnotation with the given value.

UIFontFeature(CTFontFeatureCaseSensitiveLayout+Selector)

Creates a new UIFontFeature that describes a CoreText CTFontFeatureCaseSensitiveLayout with the given value.

UIFontFeature(CTFontFeatureCharacterAlternatives+Selector)

Creates a new UIFontFeature that describes a CoreText CTFontFeatureCharacterAlternatives with the given value.

UIFontFeature(CTFontFeatureCharacterShape+Selector)

Creates a new UIFontFeature that describes a CoreText CTFontFeatureCharacterShape with the given value.

UIFontFeature(CTFontFeatureCJKRomanSpacing+Selector)

Creates a new UIFontFeature that describes a CoreText CTFontFeatureCJKRomanSpacing with the given value.

UIFontFeature(CTFontFeatureCJKSymbolAlternatives+Selector)

Creates a new UIFontFeature that describes a CoreText CTFontFeatureCJKSymbolAlternatives with the given value.

UIFontFeature(CTFontFeatureCJKVerticalRomanPlacement+Selector)

Creates a new UIFontFeature that describes a CoreText CTFontFeatureCJKVerticalRomanPlacement with the given value.

UIFontFeature(CTFontFeatureContextualAlternates+Selector)

Creates a new UIFontFeature that describes a CoreText CTFontFeatureContextualAlternates with the given value.

UIFontFeature(CTFontFeatureCursiveConnection+Selector)

Creates a new UIFontFeature that describes a CoreText CTFontFeatureCursiveConnection with the given value.

UIFontFeature(CTFontFeatureDesignComplexity+Selector)

Creates a new UIFontFeature that describes a CoreText CTFontFeatureDesignComplexity with the given value.

UIFontFeature(CTFontFeatureDiacritics+Selector)

Creates a new UIFontFeature that describes a CoreText CTFontFeatureDiacritics with the given value.

UIFontFeature(CTFontFeatureFractions+Selector)

Creates a new UIFontFeature that describes a CoreText CTFontFeatureFractions with the given value.

UIFontFeature(CTFontFeatureIdeographicAlternatives+Selector)

Creates a new UIFontFeature that describes a CoreText CTFontFeatureIdeographicAlternatives with the given value.

UIFontFeature(CTFontFeatureIdeographicSpacing+Selector)

Creates a new UIFontFeature that describes a CoreText CTFontFeatureIdeographicSpacing with the given value.

UIFontFeature(CTFontFeatureItalicCJKRoman+Selector)

Creates a new UIFontFeature that describes a CoreText CTFontFeatureItalicCJKRoman with the given value.

UIFontFeature(CTFontFeatureKanaSpacing+Selector)

Creates a new UIFontFeature that describes a CoreText CTFontFeatureKanaSpacing with the given value.

UIFontFeature(CTFontFeatureLetterCase+Selector)

Creates a new UIFontFeature that describes a CoreText CTFontFeatureLetterCase with the given value.

UIFontFeature(CTFontFeatureLigatures+Selector)

Creates a new UIFontFeature that describes a CoreText CTFontFeatureLigatures with the given value.

UIFontFeature(CTFontFeatureLinguisticRearrangementConnection+Selector)

Creates a new UIFontFeature that describes a CoreText CTFontFeatureLinguisticRearrangementConnection with the given value.

UIFontFeature(CTFontFeatureLowerCase+Selector)

Creates a new UIFontFeature that describes a CoreText CTFontFeatureLowerCase with the given value.

UIFontFeature(CTFontFeatureMathematicalExtras+Selector)

Creates a new UIFontFeature that describes a CoreText CTFontFeatureMathematicalExtras with the given value.

UIFontFeature(CTFontFeatureNumberCase+Selector)

Creates a new UIFontFeature that describes a CoreText CTFontFeatureNumberCase with the given value.

UIFontFeature(CTFontFeatureNumberSpacing+Selector)

Creates a new UIFontFeature that describes a CoreText CTFontFeatureNumberSpacing with the given value.

UIFontFeature(CTFontFeatureOrnamentSets+Selector)

Creates a new UIFontFeature that describes a CoreText CTFontFeatureOrnamentSets with the given value.

UIFontFeature(CTFontFeatureOverlappingCharacters+Selector)

Creates a new UIFontFeature that describes a CoreText CTFontFeatureOverlappingCharacters with the given value.

UIFontFeature(CTFontFeatureRubyKana+Selector)

Creates a new UIFontFeature that describes a CoreText CTFontFeatureRubyKana with the given value.

UIFontFeature(CTFontFeatureSmartSwash+Selector)

Creates a new UIFontFeature that describes a CoreText CTFontFeatureSmartSwash with the given value.

UIFontFeature(CTFontFeatureStyleOptions+Selector)

Creates a new UIFontFeature that describes a CoreText CTFontFeatureStyleOptions with the given value.

UIFontFeature(CTFontFeatureStylisticAlternatives+Selector)

Creates a new UIFontFeature that describes a CoreText CTFontFeatureStylisticAlternatives with the given value.

UIFontFeature(CTFontFeatureTextSpacing+Selector)

Creates a new UIFontFeature that describes a CoreText CTFontFeatureTextSpacing with the given value.

UIFontFeature(CTFontFeatureTransliteration+Selector)

Creates a new UIFontFeature that describes a CoreText CTFontFeatureTransliteration with the given value.

UIFontFeature(CTFontFeatureTypographicExtras+Selector)

Creates a new UIFontFeature that describes a CoreText CTFontFeatureTypographicExtras with the given value.

UIFontFeature(CTFontFeatureUnicodeDecomposition+Selector)

Creates a new UIFontFeature that describes a CoreText CTFontFeatureUnicodeDecomposition with the given value.

UIFontFeature(CTFontFeatureUpperCase+Selector)

Creates a new UIFontFeature that describes a CoreText CTFontFeatureUpperCase with the given value.

UIFontFeature(CTFontFeatureVerticalPosition+Selector)

Creates a new UIFontFeature that describes a CoreText CTFontFeatureVerticalPosition with the given value.

UIFontFeature(CTFontFeatureVerticalSubstitutionConnection+Selector)

Creates a new UIFontFeature that describes a CoreText CTFontFeatureVerticalSubstitutionConnection with the given value.

UIFontFeature(Int32)

Creates a new UIFontFeature that describes a CoreText CTFontFeatureCharacterAlternatives with the given value.

Properties

FontFeature

The FontFeatureGroup that this UIFontFeature object encapsulates.

FontFeatureValue

The value for the FontFeature.

Methods

ToString()

Renders a human readable representation of this object.

Explicit Interface Implementations

INativeObject.Handle

Applies to