Skip to content
Permalink
Browse files

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
  • Loading branch information
wonder
wonder committed Apr 29, 2010
1 parent a1d5dcd commit 31f4b74c8d3d5578e86133b98ff9e4dc4396d8da
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/core/symbology-ng/qgsmarkersymbollayerv2.cpp
@@ -655,7 +655,9 @@ QString QgsFontMarkerSymbolLayerV2::layerType() const

void QgsFontMarkerSymbolLayerV2::startRender( QgsSymbolV2RenderContext& context )
{
mFont = QFont( mFontFamily, MM2POINT( mSize ) / context.renderContext().rasterScaleFactor() );
double pixelSize = context.outputPixelSize( mSize );
mFont = QFont( mFontFamily );
mFont.setPixelSize( pixelSize / context.renderContext().rasterScaleFactor() );
QFontMetrics fm( mFont );
mChrOffset = QPointF( fm.width( mChr ) / 2, -fm.ascent() / 2 );

0 comments on commit 31f4b74

Please sign in to comment.
You can’t perform that action at this time.