internal

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2022 License: MIT, Unlicense Imports: 10 Imported by: 0

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

type Shaper

type Shaper func(shaping.Input) (shaping.Output, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL