iOS Guides | Samples

MonoTouch.UIKit.UIFontAttributes Class

Attributes used to describe a font, used by UIFontDescriptor

See Also: UIFontAttributes Members

Syntax

public class UIFontAttributes : DictionaryContainer

Remarks

This type defines the attributes used to describe a font, like the font family, the font name, the character set, typographic features, glyph advancement, advanced typesetting features and others.

Typically you create objects of this instance to create a UIFontDescriptor.

C# Example

var attributes = new UIFontAttributes () {
    Size = 14,
    Matrix = MyTransform
};

Requirements

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

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

See Also: Inherited members from MonoTouch.Foundation.DictionaryContainer

Public Constructors

Creates an empty UIFontAttributes.
Creates a UIFontAttributes from a weakly typed NSDictionary.

Public Properties

CascadeListUIFontDescriptor[]. Specifies the list of sub descriptors to be used before the system default fallbacks.
CharacterSetNSCharacterSet. Describes the character set supported by the specified font.
Facestring. The font face.
Familystring. The font family.
FeatureSettingsUIFontFeature[]. Typographic and layout feature settings.
FixedAdvanceNullable<float>. Override for font's fixed advance for individual glyphs.
MatrixNullable<MonoTouch.CoreGraphics.CGAffineTransform>. Affine transformation matrix for the font.
Namestring. Font name.
SizeNullable<float>. Font size.
TextStyleNSString. Text style.
TraitsUIFontTraits. Font traits.
VariationNSDictionary.
VisibleNamestring. Font visible name.
WeakFeatureSettingsNSDictionary[]. Weakly-typed version of the FeatureSettings properties