diff --git a/backend/config.go b/backend/config.go index cf67efe..e94e40d 100644 --- a/backend/config.go +++ b/backend/config.go @@ -52,6 +52,7 @@ type AppConfig struct { SkipSSLVerify bool EnqueueBatchSize int Language string + DisableDPIDetection bool // Experimental - may be removed in future FontNormalTTF string diff --git a/main.go b/main.go index 96511ea..6c79086 100644 --- a/main.go +++ b/main.go @@ -47,6 +47,10 @@ func main() { os.Setenv("FYNE_SCALE", "1.1") } + if myApp.Config.Application.DisableDPIDetection { + os.Setenv("FYNE_DISABLE_DPI_DETECTION", "true") + } + // load configured app language, or all otherwise lIdx := slices.IndexFunc(res.TranslationsInfo, func(t res.TranslationInfo) bool { return t.Name == myApp.Config.Application.Language