Alertbox added.
This commit is contained in:
BIN
fonts/Rockboxcond12.ttf
Normal file
BIN
fonts/Rockboxcond12.ttf
Normal file
Binary file not shown.
25
fonts/fonts.go
Normal file
25
fonts/fonts.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package fonts
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
_ "embed"
|
||||
"log"
|
||||
|
||||
"github.com/hajimehoshi/ebiten/v2/text/v2"
|
||||
)
|
||||
|
||||
const ()
|
||||
|
||||
var (
|
||||
PixelFont *text.GoTextFaceSource
|
||||
//go:embed Rockboxcond12.ttf
|
||||
pixel_fnt []byte
|
||||
)
|
||||
|
||||
func init() {
|
||||
s, err := text.NewGoTextFaceSource(bytes.NewReader(pixel_fnt))
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
PixelFont = s
|
||||
}
|
||||
Reference in New Issue
Block a user