mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +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;
|
||||
}
|
||||
}
|
||||
#ifdef Q_OS_MAC
|
||||
QFontMetrics fm(QFont(SANS_FONT_FAMILY, _fontSize * 1.2));
|
||||
#else
|
||||
QFontMetrics fm(QFont(SANS_FONT_FAMILY, _fontSize));
|
||||
#endif
|
||||
QSizeF result = QSizeF(fm.width(text), fm.lineSpacing() * lines);
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue