mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
c6e4eecf21
This commit enables consumers of the text shaper to select a policy for how line breaking candidates will be chosen. The new default policy can break lines within "words" (UAX#14 segments) when words do not fit by themselves on a line. This ensures that text does not horizontally overflow its bounding box unless the available width is insufficient to display a single UAX#29 grapheme cluster. Fixes: https://todo.sr.ht/~eliasnaur/gio/467 Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
17 lines
462 B
Modula-2
17 lines
462 B
Modula-2
module gioui.org
|
|
|
|
go 1.18
|
|
|
|
require (
|
|
eliasnaur.com/font v0.0.0-20230308162249-dd43949cb42d
|
|
gioui.org/cpu v0.0.0-20210817075930-8d6a761490d2
|
|
gioui.org/shader v1.0.6
|
|
github.com/go-text/typesetting v0.0.0-20230602202114-9797aefac433
|
|
golang.org/x/exp v0.0.0-20221012211006-4de253d81b95
|
|
golang.org/x/exp/shiny v0.0.0-20220827204233-334a2380cb91
|
|
golang.org/x/image v0.5.0
|
|
golang.org/x/sys v0.0.0-20220825204002-c680a09ffe64
|
|
)
|
|
|
|
require golang.org/x/text v0.7.0
|