From d789adc6b58c9f0f384dd9e8d504014e4ce062a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Sat, 4 Jan 2014 14:55:20 +0100 Subject: [PATCH] fixed text position in YACReader (MacOSX/Qt4) --- YACReader/main.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/YACReader/main.cpp b/YACReader/main.cpp index 2e38099e..fb6dd38d 100644 --- a/YACReader/main.cpp +++ b/YACReader/main.cpp @@ -9,6 +9,7 @@ #include #include #include +#include #include "main_window_viewer.h" #include "configuration.h" #include "exit_check.h" @@ -58,6 +59,15 @@ int main(int argc, char * argv[]) _CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF ); #endif +//fix for misplaced text in Qt4.8 and Mavericks +#ifdef Q_OS_MAC + #if QT_VERSION < 0x050000 + if(QSysInfo::MacintoshVersion > QSysInfo::MV_10_8) + QFont::insertSubstitution(".Lucida Grande UI", "Lucida Grande"); + #endif +#endif + + #ifdef Q_OS_MAC YACReaderApplication app(argc,argv); #else