aboutsummaryrefslogtreecommitdiff
path: root/go/ui/font.go
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-01-24 00:27:50 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2025-01-27 16:43:44 +0100
commit73d40903aecad3efcf7c6055c133f0db86558203 (patch)
treee9c8f00fb186e270da92f273f570579f2d0b0d95 /go/ui/font.go
parentfbba48698d8f8b83dfd7d914b0e37338e0d4e2ef (diff)
downloadmuhqs-game-73d40903aecad3efcf7c6055c133f0db86558203.tar.gz
muhqs-game-73d40903aecad3efcf7c6055c133f0db86558203.zip
intermediate commit
Diffstat (limited to 'go/ui/font.go')
-rw-r--r--go/ui/font.go24
1 files changed, 0 insertions, 24 deletions
diff --git a/go/ui/font.go b/go/ui/font.go
deleted file mode 100644
index 065ac0d8..00000000
--- a/go/ui/font.go
+++ /dev/null
@@ -1,24 +0,0 @@
-package ui
-
-import (
- "log"
-
- "golang.org/x/image/font"
- "golang.org/x/image/font/gofont/goregular"
- "golang.org/x/image/font/opentype"
-)
-
-var Font font.Face
-
-func InitFont() {
- tt, err := opentype.Parse(goregular.TTF)
- if err != nil {
- log.Fatal(err)
- }
-
- opts := &opentype.FaceOptions{Size: 24, DPI: 72}
- Font, err = opentype.NewFace(tt, opts)
- if err != nil {
- log.Fatal(err)
- }
-}