Pinball dot-matrix clock animation thingy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

34 lines
559 B

package matrix
import (
"path/filepath"
"testing"
)
func TestLoadPNGFont(t *testing.T) {
tests := []struct {
Name string
}{
{
Name: "ar_delaney_regular_24",
},
{
Name: "ar_essence_regular_24",
},
{
Name: "ar_julian_regular_24",
},
}
for _, test := range tests {
t.Run(test.Name, func(it *testing.T) {
base := filepath.Join("data", "font", test.Name)
f, err := LoadPNGFont(base+".png", base+".xml")
if err != nil {
it.Fatal(err)
}
size := f.Size()
it.Logf("font: %dx%d glyphs", size.X, size.Y)
})
}
}