Skip to content

Commit

Permalink
Render font sizes in map units in a standard size
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed May 6, 2021
1 parent 260f4b7 commit bdccfc2
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/core/layertree/qgslayertreemodellegendnode.cpp
Expand Up @@ -1469,14 +1469,7 @@ QSizeF QgsVectorLabelLegendNode::drawSymbol( const QgsLegendSettings &settings,
}
else if ( fontSizeUnit == QgsUnitTypes::RenderMapUnits )
{
size = 12; //render in a standard size is better

/*double oldSize = size * settings.mmPerMapUnit() * 2.83465;
if( ctx && ctx->context )
{
const QgsMapToPixel& mtp = ctx->context->mapToPixel();
size = size / mtp.mapUnitsPerPixel() / ctx->context->scaleFactor() * 2.83465;
}*/
size = 12; //render in a standard size
}
font.setPointSizeF( size );

Expand Down

0 comments on commit bdccfc2

Please sign in to comment.