Fix #63: add experimental support for setting custom app font
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user