mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 23:36:44 +02:00
Working on line spacing on mac
This commit is contained in:
parent
c5e0298f8d
commit
6f998e5d28
1 changed files with 4 additions and 0 deletions
|
@ -236,7 +236,11 @@ QSizeF TextOverlay::textSize(const QString& text) const {
|
||||||
++lines;
|
++lines;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#ifdef Q_OS_MAC
|
||||||
|
QFontMetrics fm(QFont(SANS_FONT_FAMILY, _fontSize * 1.2));
|
||||||
|
#else
|
||||||
QFontMetrics fm(QFont(SANS_FONT_FAMILY, _fontSize));
|
QFontMetrics fm(QFont(SANS_FONT_FAMILY, _fontSize));
|
||||||
|
#endif
|
||||||
QSizeF result = QSizeF(fm.width(text), fm.lineSpacing() * lines);
|
QSizeF result = QSizeF(fm.width(text), fm.lineSpacing() * lines);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue