TextFormat

Options for layouting text.

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

Properties

TextAlign align (optional)

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

TextAlign valign (optional)

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

bool wrap (optional)

Whether to wrap lines, default is true.

Lines are wrapped at word boundaries.

bool ellipsis (optional)

Whether to show ellipsis (...) at the end of the last visible line if the text doesn't fit into the bounds specified, default is false.

The text is broken at the boundary of the last character.

On Linux, ellipsis does not have effect if wrap is false.