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 98821cc commit 2b8252bCopy full SHA for 2b8252b
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