Skip to content

Commit

Permalink
Use standard font for text on symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Apr 19, 2018
1 parent 00d8dbf commit f1a31d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/src/core/testqgslegendrenderer.cpp
Expand Up @@ -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();
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f1a31d0

Please sign in to comment.