Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Document ¶
func Document(shaper Shaper, face font.Face, ppem fixed.Int26_6, maxWidth int, lc system.Locale, txt io.RuneReader) []text.Line
Document shapes text using the given font, ppem, maximum line width, language, and sequence of runes. It returns a slice of lines corresponding to the txt, broken to fit within maxWidth and on paragraph boundaries.
Types ¶
Click to show internal directories.
Click to hide internal directories.