Howto set a default font independant of platform or writing system.
Unsolved
General and Desktop
-
Hello,
I'm trying to set a default application font. At the moment I have this code
QFont font; font.setFamily(font.defaultFamily()); font.setStyleStrategy(QFont::PreferAntialias); a.setFont(font);
which works fine for me on linux as well as windows, however when the user e.g. has set some Chinese font to their PC, defaultFamily() will return something that cannot be used without Chinese translation and therefore applies a (in my opinion not so beautiful) default font. How can I fallback to something like Sans/Arial here?