fix: update tests and fix SetCursorFromPoint panic

- Rewrite cursor_test.go to use the current GlyphLayout-based API
  instead of the deleted byteOffsetToLineCol function
- Add guard for empty/missing layout slices in SetCursorFromPoint
  to prevent index-out-of-range panic on empty documents
- Add missing Advance field to e2e test GlyphLayout initialization
- Add cmd/pad/pad binary to .gitignore
This commit is contained in:
gmp
2026-06-04 07:24:44 -04:00
parent dbe822d3f6
commit bef3929f40
4 changed files with 84 additions and 14 deletions
+1
View File
@@ -8,6 +8,7 @@
# build files
*.apk
*.idsig
cmd/pad/pad
# IDE
.idea/