iOS Guides | Samples

MonoTouch.UIKit.UIFontAttributes Class

Attributes used to describe a font, used by UIFontDescriptor

See Also: UIFontAttributes


public class UIFontAttributes : DictionaryContainer


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


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

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

See Also: 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. Gets a dictionary of font variations, with keys such as 'wght', 'wdth', and so on.
VisibleNameString. Font visible name.
WeakFeatureSettingsNSDictionary[]. Weakly-typed version of the FeatureSettings properties