mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-19 00:04:52 -04:00
Use standard font for text on symbol
This commit is contained in:
parent
00d8dbfb47
commit
f1a31d09f1
@ -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.
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 6.7 KiB |
Loading…
x
Reference in New Issue
Block a user