Skip to content
Permalink
Browse files

Use standard font for text on symbol

  • Loading branch information
wonder-sk committed Apr 19, 2018
1 parent 00d8dbf commit f1a31d09f1a2c4a19a18799ffa358709e6ad60bf
@@ -809,6 +809,10 @@ void TestQgsLegendRenderer::testTextOnSymbol()
content["0"] = "Rd";
content["2"] = "Bl";
legend->setTextOnSymbolContent( content );
QgsTextFormat textFormat;
textFormat.setFont( QgsFontUtils::getStandardTestFont( QStringLiteral( "Roman" ) ) );
textFormat.setSize( 9 );
legend->setTextOnSymbolTextFormat( textFormat );
vl->setLegend( legend );

QgsLayerTree *root = new QgsLayerTree();
Binary file not shown.

0 comments on commit f1a31d0

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