mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 15:43:50 +02:00
Tweak 3D text overlay text size calculations
This commit is contained in:
parent
cc95e512c5
commit
9860feec61
1 changed files with 2 additions and 2 deletions
|
@ -238,8 +238,8 @@ QSizeF Text3DOverlay::textSize(const QString& text) const {
|
|||
|
||||
QFont font(SANS_FONT_FAMILY, FIXED_FONT_POINT_SIZE); // Same font properties as render()
|
||||
QFontMetrics fontMetrics(font);
|
||||
const float TEXT_SCALE_ADJUST = 1.02f; // Experimentally detemined for the specified font
|
||||
const int TEXT_HEIGHT_ADJUST = -6;
|
||||
const float TEXT_SCALE_ADJUST = 1.025f; // Experimentally detemined for the specified font
|
||||
const int TEXT_HEIGHT_ADJUST = -10;
|
||||
float scaleFactor = _lineHeight * TEXT_SCALE_ADJUST * LINE_SCALE_RATIO / (float)FIXED_FONT_POINT_SIZE;
|
||||
|
||||
QStringList lines = text.split(QRegExp("\r\n|\r|\n"));
|
||||
|
|
Loading…
Reference in a new issue