mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
go.*,text: implement shaper-driven line truncation
This commit pushes limiting the maximum number of lines of text into the shaper implementation. This is more efficient than doing it in widgets, and also opens the door for future use of the shaper to insert ellipsis and other truncating characters as appropriate. I realized that we lost the implementation of limiting the number of lines of text in my text stack overhaul, so this fixes a regression from that work. Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
This commit is contained in:
@@ -6,8 +6,8 @@ require (
|
||||
eliasnaur.com/font v0.0.0-20220124212145-832bb8fc08c3
|
||||
gioui.org/cpu v0.0.0-20210817075930-8d6a761490d2
|
||||
gioui.org/shader v1.0.6
|
||||
github.com/benoitkugler/textlayout v0.2.0
|
||||
github.com/go-text/typesetting v0.0.0-20221111143014-22bec069817d
|
||||
github.com/benoitkugler/textlayout v0.3.0
|
||||
github.com/go-text/typesetting v0.0.0-20221214153724-0399769901d5
|
||||
golang.org/x/exp v0.0.0-20221012211006-4de253d81b95
|
||||
golang.org/x/exp/shiny v0.0.0-20220827204233-334a2380cb91
|
||||
golang.org/x/image v0.0.0-20220722155232-062f8c9fd539
|
||||
|
||||
Reference in New Issue
Block a user