aboutsummaryrefslogtreecommitdiff
path: root/go/font/font.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/font/font.go')
-rw-r--r--go/font/font.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/go/font/font.go b/go/font/font.go
index 9e016045..dbadcc6f 100644
--- a/go/font/font.go
+++ b/go/font/font.go
@@ -4,8 +4,6 @@ import (
"bytes"
"log"
- "golang.org/x/image/font/gofont/goregular"
-
"github.com/hajimehoshi/ebiten/v2/text/v2"
)
@@ -17,7 +15,7 @@ var Font18 *text.GoTextFace
var Font12 *text.GoTextFace
func InitFont() {
- fontSource, err := text.NewGoTextFaceSource(bytes.NewReader(goregular.TTF))
+ fontSource, err := text.NewGoTextFaceSource(bytes.NewReader(LatinModernMathOtf))
if err != nil {
log.Fatal(err)
}