View definition

type TextLayout

Defined in github.com/andlabs/ui/draw.go

Description

TextLayout is the entry point for formatting a block of text to be drawn onto a DrawContext.

The block of text to lay out and the default font that is used if no font attributes are applied to a given character are provided at TextLayout creation time and cannot be changed later. However, you may add attributes to various points of the text at any time, even after drawing the text once (unlike a DrawPath). Some of these attributes also have initial values; refer to each method to see what they are.

The block of text can either be a single line or multiple word-wrapped lines, each with a given maximum width.

TextLayout is referenced in 1 repository

github.com/andlabs/ui