TechDraw: SVG export refactoring - Keep correct font sizes

This commit is contained in:
Tomas Pavlicek
2019-06-07 21:11:36 +02:00
committed by WandererFan
parent f4ca09f985
commit 28b2df05da
7 changed files with 18 additions and 37 deletions

View File

@@ -84,7 +84,7 @@ void QGIHighlight::makeHighlight()
void QGIHighlight::makeReference()
{
prepareGeometryChange();
m_refFont.setPointSizeF(QGIView::calculateFontPointSizeF(this, m_refSize));
m_refFont.setPixelSize(QGIView::calculateFontPixelSize(m_refSize));
m_reference->setFont(m_refFont);
m_reference->setPlainText(QString::fromUtf8(m_refText));
double fudge = Rez::guiX(1.0);