Using Windows Default Font, fix issues with Non-Latin systems (commit
before)
This commit is contained in:
parent
883c936ab2
commit
c46a616511
1 changed files with 3 additions and 2 deletions
5
main.cpp
5
main.cpp
|
@ -58,9 +58,10 @@ int main(int argc, char *argv[])
|
|||
char faceName[32];
|
||||
char DefChar = ' ';
|
||||
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);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue