Get "real" Font
-
wrote on 16 May 2016, 13:32 last edited by
Hi
Please can anyone tell me how i get the real font family name.When i do somethink like:
// Non existing Font-Family "Test"
QFont test("Test");
QApplication::setFont(test);QFont systemFont = QApplication::font();
The ApplicationFont will change to anythink but
systemFont.family() will give me "Test"
How can i get the real Family Name?
thx Chris
-
Hi
Please can anyone tell me how i get the real font family name.When i do somethink like:
// Non existing Font-Family "Test"
QFont test("Test");
QApplication::setFont(test);QFont systemFont = QApplication::font();
The ApplicationFont will change to anythink but
systemFont.family() will give me "Test"
How can i get the real Family Name?
thx Chris
wrote on 17 May 2016, 05:34 last edited by@ckvsoft
Is this what you are looking for? QFontInfo::family() -
wrote on 17 May 2016, 11:21 last edited by
Hi
Nice- Yes this is it.It Works.
Thx Chris
3/3