shithub: mycel

Download patch

ref: e26194b441f150c062c25a331af970fc96965e63
parent: d3e6d77f14753eaf7f39cbf6a812a9edf15b4f69
author: Philip Silva <philip.silva@protonmail.com>
date: Sun Jul 10 13:41:34 EDT 2022

better handling of missing fonts

--- a/style/stylesheets.go
+++ b/style/stylesheets.go
@@ -290,8 +290,8 @@
 	log.Infof("call dui.Display.OpenFont(%v)", fn)
 	font, err := dui.Display.OpenFont(fn)
 	if err != nil {
-		log.Printf("%v is not avail", fn)
-		return nil
+		log.Errorf("%v is not avail", fn)
+		font = dui.Display.Font
 	}
 	fontCache[fn] = font