iOS Guides | Samples

MonoTouch.UIKit.UIFontFeature Class

Represents a single typographic or font layout feature.

See Also: UIFontFeature

Syntax

public class UIFontFeature : INativeObject

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:

C# 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);
}

Requirements

Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0

The members of MonoTouch.UIKit.UIFontFeature are listed below.

See Also: Object

Public Constructors

Creates a new UIFontFeature that describes a CoreText CTFontFeatureAllTypographicFeatures with the given value.
Creates a new UIFontFeature that describes a CoreText CTFontFeatureAlternateKana with the given value.
Creates a new UIFontFeature that describes a CoreText CTFontFeatureAnnotation with the given value.
Creates a new UIFontFeature that describes a CoreText CTFontFeatureCaseSensitiveLayout with the given value.
Creates a new UIFontFeature that describes a CoreText CTFontFeatureCharacterAlternatives with the given value.
Creates a new UIFontFeature that describes a CoreText CTFontFeatureCharacterShape with the given value.
Creates a new UIFontFeature that describes a CoreText CTFontFeatureCJKRomanSpacing with the given value.
Creates a new UIFontFeature that describes a CoreText CTFontFeatureCJKSymbolAlternatives with the given value.
Creates a new UIFontFeature that describes a CoreText CTFontFeatureCJKVerticalRomanPlacement with the given value.
Creates a new UIFontFeature that describes a CoreText CTFontFeatureContextualAlternates with the given value.
Creates a new UIFontFeature that describes a CoreText CTFontFeatureCursiveConnection with the given value.
Creates a new UIFontFeature that describes a CoreText CTFontFeatureDesignComplexity with the given value.
Creates a new UIFontFeature that describes a CoreText CTFontFeatureDiacritics with the given value.
Creates a new UIFontFeature that describes a CoreText CTFontFeatureFractions with the given value.
Creates a new UIFontFeature that describes a CoreText CTFontFeatureIdeographicAlternatives with the given value.
Creates a new UIFontFeature that describes a CoreText CTFontFeatureIdeographicSpacing with the given value.
Creates a new UIFontFeature that describes a CoreText CTFontFeatureItalicCJKRoman with the given value.
Creates a new UIFontFeature that describes a CoreText CTFontFeatureKanaSpacing with the given value.
Creates a new UIFontFeature that describes a CoreText CTFontFeatureLetterCase with the given value.
Creates a new UIFontFeature that describes a CoreText CTFontFeatureLigatures with the given value.
Creates a new UIFontFeature that describes a CoreText CTFontFeatureLinguisticRearrangementConnection with the given value.
Creates a new UIFontFeature that describes a CoreText CTFontFeatureLowerCase with the given value.
Creates a new UIFontFeature that describes a CoreText CTFontFeatureMathematicalExtras with the given value.
Creates a new UIFontFeature that describes a CoreText CTFontFeatureNumberCase with the given value.
Creates a new UIFontFeature that describes a CoreText CTFontFeatureNumberSpacing with the given value.
Creates a new UIFontFeature that describes a CoreText CTFontFeatureOrnamentSets with the given value.
Creates a new UIFontFeature that describes a CoreText CTFontFeatureOverlappingCharacters with the given value.
Creates a new UIFontFeature that describes a CoreText CTFontFeatureRubyKana with the given value.
Creates a new UIFontFeature that describes a CoreText CTFontFeatureSmartSwash with the given value.
Creates a new UIFontFeature that describes a CoreText CTFontFeatureStyleOptions with the given value.
Creates a new UIFontFeature that describes a CoreText CTFontFeatureStylisticAlternatives with the given value.
Creates a new UIFontFeature that describes a CoreText CTFontFeatureTextSpacing with the given value.
Creates a new UIFontFeature that describes a CoreText CTFontFeatureTransliteration with the given value.
Creates a new UIFontFeature that describes a CoreText CTFontFeatureTypographicExtras with the given value.
Creates a new UIFontFeature that describes a CoreText CTFontFeatureUnicodeDecomposition with the given value.
Creates a new UIFontFeature that describes a CoreText CTFontFeatureUpperCase with the given value.
Creates a new UIFontFeature that describes a CoreText CTFontFeatureVerticalPosition with the given value.
Creates a new UIFontFeature that describes a CoreText CTFontFeatureVerticalSubstitutionConnection with the given value.
Creates a new UIFontFeature that describes a CoreText CTFontFeatureCharacterAlternatives with the given value.

Public Properties

[read-only]
FontFeatureFontFeatureGroup. The FontFeatureGroup that this UIFontFeature object encapsulates.
[read-only]
FontFeatureValueObject. The value for the FontFeature.

Public Methods

override
ToString() : String
Renders a human readable representation of this object.

Explicitly Implemented Interface Members

[read-only]
UIFontFeature$INativeObject.HandleIntPtr. Handle to the underlying NSDictionary that is used to store the FontFeature and FontFeatureValue.