Skip to content

Commit 31f4b74

Browse files
author
wonder
committedApr 29, 2010
Fixed resizing of font marker when units are map units.
git-svn-id: http://svn.osgeo.org/qgis/trunk@13409 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent a1d5dcd commit 31f4b74

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/core/symbology-ng/qgsmarkersymbollayerv2.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,9 @@ QString QgsFontMarkerSymbolLayerV2::layerType() const
655655

656656
void QgsFontMarkerSymbolLayerV2::startRender( QgsSymbolV2RenderContext& context )
657657
{
658-
mFont = QFont( mFontFamily, MM2POINT( mSize ) / context.renderContext().rasterScaleFactor() );
658+
double pixelSize = context.outputPixelSize( mSize );
659+
mFont = QFont( mFontFamily );
660+
mFont.setPixelSize( pixelSize / context.renderContext().rasterScaleFactor() );
659661
QFontMetrics fm( mFont );
660662
mChrOffset = QPointF( fm.width( mChr ) / 2, -fm.ascent() / 2 );
661663

0 commit comments

Comments
 (0)
Please sign in to comment.