TextObjectAttributes

public struct TextObjectAttributes

The TextObjectAttributes structure is used for managing basic font rendering attributes for text objects.

Properties

  • fontName: font name.
  • fontSize: font size.
  • fontColor: font color.
  • alignment: horizontal/vertical text alignment.
  • wrap: text wraps.
  • isBold: text is bold.
  • isItalic: text is italicized.
  • isUnderline: text is underlined.
  • renderQuality: font scaling attribute.

Extensions

  • Returns a font for the text object attributes, if available (iOS & tvOS).

  • Returns a font for the text object attributes, if available (macOS).

    Declaration

    Swift

    public var font: NSFont { get }