diff --git a/text/v2/gotextseg.go b/text/v2/gotextseg.go index 881ef0a40..afc17087a 100644 --- a/text/v2/gotextseg.go +++ b/text/v2/gotextseg.go @@ -21,6 +21,7 @@ import ( "github.com/go-text/typesetting/font/opentype" "golang.org/x/image/math/fixed" + gvector "golang.org/x/image/vector" "github.com/hajimehoshi/ebiten/v2/vector" ) diff --git a/text/v2/text_test.go b/text/v2/text_test.go index 8ae64be56..fdd57859b 100644 --- a/text/v2/text_test.go +++ b/text/v2/text_test.go @@ -450,7 +450,6 @@ func TestGoXFaceMetrics(t *testing.T) { } } - func BenchmarkDrawText(b *testing.B) { var txt string for i := 0; i < 32; i++ {