TextAttributes

Attributes for drawing text.

Header#include "nativeui/gfx/text.h"
Namespacenamespace nu
Typestruct

By default text is drew at top-left corner using system font and color.

Properties

scoped_refptr<Font> font

Font for drawing text, default is system UI font.

Color color

Text color, default is system UI text color.

TextAlign align

Horizontal text align, default is to the start of layout.

TextAlign valign

Vertical text align, default is to the start of layout.