font asset
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package assets
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestEmbeddedUIFont(t *testing.T) {
|
||||
data, size, release := PinUIFont()
|
||||
defer release()
|
||||
|
||||
if data == 0 {
|
||||
t.Fatal("embedded UI font has a nil data pointer")
|
||||
}
|
||||
if size < 4 {
|
||||
t.Fatalf("embedded UI font is too small: %d bytes", size)
|
||||
}
|
||||
if string(uiFont[:4]) != "\x00\x01\x00\x00" {
|
||||
t.Fatalf("embedded UI font has unexpected TrueType signature % x", uiFont[:4])
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user