1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

feat: bump font size from undersized

Fix #2280.
This commit is contained in:
Zetok Zalbavar 2016-10-10 21:31:54 +01:00
parent 14d3f13722
commit 2d472004cd
No known key found for this signature in database
GPG Key ID: C953D3880212068A

View File

@ -128,13 +128,13 @@ QFont Style::getFont(Style::Font font)
static int defSize = QFontInfo(QFont()).pixelSize();
static QFont fonts[] = {
appFont(defSize + 2, QFont::Bold), // extra big
appFont(defSize , QFont::Normal), // big
appFont(defSize , QFont::Bold), // big bold
appFont(defSize - 1, QFont::Normal), // medium
appFont(defSize - 1, QFont::Bold), // medium bold
appFont(defSize - 2, QFont::Normal), // small
appFont(defSize - 2, QFont::Light), // small light
appFont(defSize + 3, QFont::Bold), // extra big
appFont(defSize + 1, QFont::Normal), // big
appFont(defSize + 1, QFont::Bold), // big bold
appFont(defSize , QFont::Normal), // medium
appFont(defSize , QFont::Bold), // medium bold
appFont(defSize - 1, QFont::Normal), // small
appFont(defSize - 1, QFont::Light), // small light
};
return fonts[font];