Fix #63: add experimental support for setting custom app font

This commit is contained in:
Drew Weymouth
2023-04-21 18:19:45 -07:00
parent e7e77ee54c
commit 2f14a09cd8
5 changed files with 142 additions and 8 deletions
+4 -1
View File
@@ -27,7 +27,10 @@ func main() {
}
fyneApp := app.New()
fyneApp.Settings().SetTheme(&theme.MyTheme{})
fyneApp.Settings().SetTheme(&theme.MyTheme{
NormalFont: myApp.Config.Application.FontNormalTTF,
BoldFont: myApp.Config.Application.FontBoldTTF,
})
w := float32(myApp.Config.Application.WindowWidth)
if w <= 1 {
w = 1000