Improve filename truncation to fit exact number of characters

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
gmp
2026-05-08 20:21:35 -04:00
co-authored by Qwen-Coder
parent 68d431408d
commit bbd16be9f2
4 changed files with 79 additions and 23 deletions
+2 -1
View File
@@ -9,6 +9,7 @@ import (
"gioui.org/op"
"gioui.org/text"
"gioui.org/unit"
"gioui.org/font/gofont"
"pad/internal/editor"
"pad/internal/ui"
@@ -30,7 +31,7 @@ func main() {
func run(w *app.Window) error {
var ops op.Ops
shaper := text.NewShaper()
shaper := text.NewShaper(text.WithCollection(gofont.Collection()))
renderer := ui.New(ui.Theme{FontSize: 14}, shaper)
// Initial screen size