mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-07 13:20:52 +02:00
Fix for metrics.
This commit is contained in:
parent
2d41540dbc
commit
b9c91b4cfc
1 changed files with 2 additions and 0 deletions
|
@ -45,6 +45,8 @@ TextRenderer::TextRenderer(const char* family, int pointSize, int weight, bool i
|
|||
float ratio = QApplication::desktop()->windowHandle()->devicePixelRatio();
|
||||
if (ratio != 1.0f) {
|
||||
_font.setPointSize(_font.pointSize() * ratio);
|
||||
_metrics = QFontMetrics(_font);
|
||||
_effectThickness *= ratio;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue