UIFontFeature
UIFontFeature
Class
Definition
Represents a single typographic or font layout feature.
public class UIFontFeature : ObjCRuntime.INativeObject
type UIFontFeature = class
interface INativeObject
- Inheritance
- 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) UIFontFeature(CTFontFeatureAllTypographicFeatures+Selector) |
Creates a new UIFontFeature that describes a CoreText CTFontFeatureAllTypographicFeatures with the given value. |
UIFontFeature(CTFontFeatureNumberCase+Selector) UIFontFeature(CTFontFeatureNumberCase+Selector) |
Creates a new UIFontFeature that describes a CoreText CTFontFeatureNumberCase with the given value. |
UIFontFeature(CTFontFeatureNumberSpacing+Selector) UIFontFeature(CTFontFeatureNumberSpacing+Selector) |
Creates a new UIFontFeature that describes a CoreText CTFontFeatureNumberSpacing with the given value. |
UIFontFeature(CTFontFeatureOrnamentSets+Selector) UIFontFeature(CTFontFeatureOrnamentSets+Selector) |
Creates a new UIFontFeature that describes a CoreText CTFontFeatureOrnamentSets with the given value. |
UIFontFeature(CTFontFeatureOverlappingCharacters+Selector) UIFontFeature(CTFontFeatureOverlappingCharacters+Selector) |
Creates a new UIFontFeature that describes a CoreText CTFontFeatureOverlappingCharacters with the given value. |
UIFontFeature(CTFontFeatureRubyKana+Selector) UIFontFeature(CTFontFeatureRubyKana+Selector) |
Creates a new UIFontFeature that describes a CoreText CTFontFeatureRubyKana with the given value. |
UIFontFeature(CTFontFeatureSmartSwash+Selector) UIFontFeature(CTFontFeatureSmartSwash+Selector) |
Creates a new UIFontFeature that describes a CoreText CTFontFeatureSmartSwash with the given value. |
UIFontFeature(CTFontFeatureStyleOptions+Selector) UIFontFeature(CTFontFeatureStyleOptions+Selector) |
Creates a new UIFontFeature that describes a CoreText CTFontFeatureStyleOptions with the given value. |
UIFontFeature(CTFontFeatureMathematicalExtras+Selector) UIFontFeature(CTFontFeatureMathematicalExtras+Selector) |
Creates a new UIFontFeature that describes a CoreText CTFontFeatureMathematicalExtras with the given value. |
UIFontFeature(CTFontFeatureStylisticAlternatives+Selector) UIFontFeature(CTFontFeatureStylisticAlternatives+Selector) |
Creates a new UIFontFeature that describes a CoreText CTFontFeatureStylisticAlternatives with the given value. |
UIFontFeature(CTFontFeatureTransliteration+Selector) UIFontFeature(CTFontFeatureTransliteration+Selector) |
Creates a new UIFontFeature that describes a CoreText CTFontFeatureTransliteration with the given value. |
UIFontFeature(CTFontFeatureTypographicExtras+Selector) UIFontFeature(CTFontFeatureTypographicExtras+Selector) |
Creates a new UIFontFeature that describes a CoreText CTFontFeatureTypographicExtras with the given value. |
UIFontFeature(CTFontFeatureUnicodeDecomposition+Selector) UIFontFeature(CTFontFeatureUnicodeDecomposition+Selector) |
Creates a new UIFontFeature that describes a CoreText CTFontFeatureUnicodeDecomposition with the given value. |
UIFontFeature(CTFontFeatureUpperCase+Selector) UIFontFeature(CTFontFeatureUpperCase+Selector) |
Creates a new UIFontFeature that describes a CoreText CTFontFeatureUpperCase with the given value. |
UIFontFeature(CTFontFeatureVerticalPosition+Selector) UIFontFeature(CTFontFeatureVerticalPosition+Selector) |
Creates a new UIFontFeature that describes a CoreText CTFontFeatureVerticalPosition with the given value. |
UIFontFeature(CTFontFeatureVerticalSubstitutionConnection+Selector) UIFontFeature(CTFontFeatureVerticalSubstitutionConnection+Selector) |
Creates a new UIFontFeature that describes a CoreText CTFontFeatureVerticalSubstitutionConnection with the given value. |
UIFontFeature(Int32) UIFontFeature(Int32) |
Creates a new UIFontFeature that describes a CoreText CTFontFeatureCharacterAlternatives with the given value. |
UIFontFeature(CTFontFeatureTextSpacing+Selector) UIFontFeature(CTFontFeatureTextSpacing+Selector) |
Creates a new UIFontFeature that describes a CoreText CTFontFeatureTextSpacing with the given value. |
UIFontFeature(CTFontFeatureLinguisticRearrangementConnection+Selector) UIFontFeature(CTFontFeatureLinguisticRearrangementConnection+Selector) |
Creates a new UIFontFeature that describes a CoreText CTFontFeatureLinguisticRearrangementConnection with the given value. |
UIFontFeature(CTFontFeatureLowerCase+Selector) UIFontFeature(CTFontFeatureLowerCase+Selector) |
Creates a new UIFontFeature that describes a CoreText CTFontFeatureLowerCase with the given value. |
UIFontFeature(CTFontFeatureLetterCase+Selector) UIFontFeature(CTFontFeatureLetterCase+Selector) |
Creates a new UIFontFeature that describes a CoreText CTFontFeatureLetterCase with the given value. |
UIFontFeature(CTFontFeatureAlternateKana+Selector) UIFontFeature(CTFontFeatureAlternateKana+Selector) |
Creates a new UIFontFeature that describes a CoreText CTFontFeatureAlternateKana with the given value. |
UIFontFeature(CTFontFeatureAnnotation+Selector) UIFontFeature(CTFontFeatureAnnotation+Selector) |
Creates a new UIFontFeature that describes a CoreText CTFontFeatureAnnotation with the given value. |
UIFontFeature(CTFontFeatureCaseSensitiveLayout+Selector) UIFontFeature(CTFontFeatureCaseSensitiveLayout+Selector) |
Creates a new UIFontFeature that describes a CoreText CTFontFeatureCaseSensitiveLayout with the given value. |
UIFontFeature(CTFontFeatureCharacterAlternatives+Selector) UIFontFeature(CTFontFeatureCharacterAlternatives+Selector) |
Creates a new UIFontFeature that describes a CoreText CTFontFeatureCharacterAlternatives with the given value. |
UIFontFeature(CTFontFeatureCharacterShape+Selector) UIFontFeature(CTFontFeatureCharacterShape+Selector) |
Creates a new UIFontFeature that describes a CoreText CTFontFeatureCharacterShape with the given value. |
UIFontFeature(CTFontFeatureCJKRomanSpacing+Selector) UIFontFeature(CTFontFeatureCJKRomanSpacing+Selector) |
Creates a new UIFontFeature that describes a CoreText CTFontFeatureCJKRomanSpacing with the given value. |
UIFontFeature(CTFontFeatureCJKSymbolAlternatives+Selector) UIFontFeature(CTFontFeatureCJKSymbolAlternatives+Selector) |
Creates a new UIFontFeature that describes a CoreText CTFontFeatureCJKSymbolAlternatives with the given value. |
UIFontFeature(CTFontFeatureLigatures+Selector) UIFontFeature(CTFontFeatureLigatures+Selector) |
Creates a new UIFontFeature that describes a CoreText CTFontFeatureLigatures with the given value. |
UIFontFeature(CTFontFeatureContextualAlternates+Selector) UIFontFeature(CTFontFeatureContextualAlternates+Selector) |
Creates a new UIFontFeature that describes a CoreText CTFontFeatureContextualAlternates with the given value. |
UIFontFeature(CTFontFeatureCJKVerticalRomanPlacement+Selector) UIFontFeature(CTFontFeatureCJKVerticalRomanPlacement+Selector) |
Creates a new UIFontFeature that describes a CoreText CTFontFeatureCJKVerticalRomanPlacement with the given value. |
UIFontFeature(CTFontFeatureDesignComplexity+Selector) UIFontFeature(CTFontFeatureDesignComplexity+Selector) |
Creates a new UIFontFeature that describes a CoreText CTFontFeatureDesignComplexity with the given value. |
UIFontFeature(CTFontFeatureDiacritics+Selector) UIFontFeature(CTFontFeatureDiacritics+Selector) |
Creates a new UIFontFeature that describes a CoreText CTFontFeatureDiacritics with the given value. |
UIFontFeature(CTFontFeatureFractions+Selector) UIFontFeature(CTFontFeatureFractions+Selector) |
Creates a new UIFontFeature that describes a CoreText CTFontFeatureFractions with the given value. |
UIFontFeature(CTFontFeatureIdeographicAlternatives+Selector) UIFontFeature(CTFontFeatureIdeographicAlternatives+Selector) |
Creates a new UIFontFeature that describes a CoreText CTFontFeatureIdeographicAlternatives with the given value. |
UIFontFeature(CTFontFeatureIdeographicSpacing+Selector) UIFontFeature(CTFontFeatureIdeographicSpacing+Selector) |
Creates a new UIFontFeature that describes a CoreText CTFontFeatureIdeographicSpacing with the given value. |
UIFontFeature(CTFontFeatureItalicCJKRoman+Selector) UIFontFeature(CTFontFeatureItalicCJKRoman+Selector) |
Creates a new UIFontFeature that describes a CoreText CTFontFeatureItalicCJKRoman with the given value. |
UIFontFeature(CTFontFeatureKanaSpacing+Selector) UIFontFeature(CTFontFeatureKanaSpacing+Selector) |
Creates a new UIFontFeature that describes a CoreText CTFontFeatureKanaSpacing with the given value. |
UIFontFeature(CTFontFeatureCursiveConnection+Selector) UIFontFeature(CTFontFeatureCursiveConnection+Selector) |
Creates a new UIFontFeature that describes a CoreText CTFontFeatureCursiveConnection with the given value. |
Properties
FontFeature FontFeature |
The FontFeatureGroup that this UIFontFeature object encapsulates. |
FontFeatureValue FontFeatureValue |
The value for the FontFeature. |
Methods
ToString() ToString() |
Renders a human readable representation of this object. |
Explicit Interface Implementations
INativeObject.Handle INativeObject.Handle |
Applies to
Feedback
We'd love to hear your thoughts. Choose the type you'd like to provide:
Our feedback system is built on GitHub Issues. Read more on our blog.
Loading feedback...