Improve filename truncation to fit exact number of characters
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
+2
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user