Using Windows Default Font, fix issues with Non-Latin systems (commit

before)
This commit is contained in:
Rafael 2016-04-08 14:54:14 +02:00
parent 883c936ab2
commit c46a616511

View file

@ -58,9 +58,10 @@ int main(int argc, char *argv[])
char faceName[32]; char faceName[32];
char DefChar = ' '; char DefChar = ' ';
WideCharToMultiByte(CP_ACP, 0, uiFont.lfFaceName, -1, faceName, 32, &DefChar, NULL); WideCharToMultiByte(CP_ACP, 0, uiFont.lfFaceName, -1, faceName, 32, &DefChar, NULL);
std::string uiFontStr(faceName); QString uiFontStr(QString::fromStdString(std::string(faceName)));
QFont appFont(QString::fromStdString(uiFontStr), 9); // Set Application Font
QFont appFont(uiFontStr, 9);
a.setFont(appFont); a.setFont(appFont);
#endif #endif