[TD]fix Text sizes not exact

This commit is contained in:
Wanderer Fan
2022-05-14 11:42:27 -04:00
committed by WandererFan
parent 8b4e114b9d
commit 71426aa467
10 changed files with 67 additions and 45 deletions

View File

@@ -655,7 +655,9 @@ void QGIViewDimension::updateDim()
QFont font = datumLabel->getFont();
font.setFamily(QString::fromUtf8(vp->Font.getValue()));
font.setPixelSize(calculateFontPixelSize(vp->Fontsize.getValue()));
int fontSize = QGIView::exactFontSize(vp->Font.getValue(),
vp->Fontsize.getValue());
font.setPixelSize(fontSize);
datumLabel->setFont(font);
prepareGeometryChange();