diff --git a/src/Config.h b/src/Config.h index fa5aea7c..435a878c 100644 --- a/src/Config.h +++ b/src/Config.h @@ -34,8 +34,8 @@ #define VER_LAMEXP_MINOR_HI 1 #define VER_LAMEXP_MINOR_LO 0 #define VER_LAMEXP_TYPE Alpha -#define VER_LAMEXP_PATCH 1 -#define VER_LAMEXP_BUILD 1528 +#define VER_LAMEXP_PATCH 2 +#define VER_LAMEXP_BUILD 1532 #define VER_LAMEXP_CONFG 1528 /////////////////////////////////////////////////////////////////////////////// diff --git a/src/Global_Win32.cpp b/src/Global_Win32.cpp index a66ee50b..887d2226 100644 --- a/src/Global_Win32.cpp +++ b/src/Global_Win32.cpp @@ -1101,6 +1101,20 @@ bool lamexp_init_qt(int argc, char* argv[]) } } + //Enable larger/smaller font size + double fontScaleFactor = 1.0; + if(arguments.contains("--huge-font", Qt::CaseInsensitive)) fontScaleFactor = 1.500; + if(arguments.contains("--big-font", Qt::CaseInsensitive)) fontScaleFactor = 1.250; + if(arguments.contains("--small-font", Qt::CaseInsensitive)) fontScaleFactor = 0.875; + if(arguments.contains("--tiny-font", Qt::CaseInsensitive)) fontScaleFactor = 0.750; + if(!qFuzzyCompare(fontScaleFactor, 1.0)) + { + qWarning("Application font scale factor set to: %.3f\n", fontScaleFactor); + QFont appFont = application->font(); + appFont.setPointSizeF(appFont.pointSizeF() * fontScaleFactor); + application->setFont(appFont); + } + //Add the default translations lamexp_translation_init();