drawStyle

var drawStyle: DrawStyle(source)

Represents the drawing style for rendering text elements.

The drawStyle property encapsulates settings related to font, kerning, and text rendering options. If a drawerRef is available, the drawStyle is sourced from it; otherwise, the property uses its own value.

In the context of the TextWriter class, this property is utilized in text layout and rendering calculations, including operations like determining line height, character spacing, and overall text dimensions.