We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent a1d5dcd commit 31f4b74Copy full SHA for 31f4b74
src/core/symbology-ng/qgsmarkersymbollayerv2.cpp
@@ -655,7 +655,9 @@ QString QgsFontMarkerSymbolLayerV2::layerType() const
655
656
void QgsFontMarkerSymbolLayerV2::startRender( QgsSymbolV2RenderContext& context )
657
{
658
- mFont = QFont( mFontFamily, MM2POINT( mSize ) / context.renderContext().rasterScaleFactor() );
+ double pixelSize = context.outputPixelSize( mSize );
659
+ mFont = QFont( mFontFamily );
660
+ mFont.setPixelSize( pixelSize / context.renderContext().rasterScaleFactor() );
661
QFontMetrics fm( mFont );
662
mChrOffset = QPointF( fm.width( mChr ) / 2, -fm.ascent() / 2 );
663
0 commit comments