Font sizes too small on MacOS
-
I am porting my application to MacOS but I noticed that the font size is very small compared to Linux and Windows.
The fonts are embedded into the application and seem to be loaded correctly.
Does someone have an idea why that might happen and what I could do to prevent this? Can I provide any other information?
-
@Creaperdown
It's much better to rely on the default font size return by QFontDatabase.
Call:
QFontDatabase::systemFont(QFontDatabase::GeneralFont);
and look at the font size.
For me it is:
QFont(.AppleSystemUIFont,13,-1,5,50,0,0,0,0,0)
QFont(Ubuntu,10,-1,5,50,0,0,0,0,0)Usely on mac, 13 pt is the default font size, 11 pt is for small font size.
-
@Creaperdown
Do you set the size of this fonts explicitly ?
A 12 point size on linux looks like a 10 point size on mac. -
@Creaperdown
It's much better to rely on the default font size return by QFontDatabase.
Call:
QFontDatabase::systemFont(QFontDatabase::GeneralFont);
and look at the font size.
For me it is:
QFont(.AppleSystemUIFont,13,-1,5,50,0,0,0,0,0)
QFont(Ubuntu,10,-1,5,50,0,0,0,0,0)Usely on mac, 13 pt is the default font size, 11 pt is for small font size.
-
@Creaperdown
I don't know, I don't use qml.
Maybe:
Qt.font().pointSize -
Thanks, I'll find a way to get the default font and then base all my other fonts on it.
-