Honour renderSettings' default font.

This still leaves a few things out in the cold,
such as hit-testing and polygon generation.
But at least it allows us to plot with a default
font.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/19031
This commit is contained in:
Jeff Young
2025-07-17 09:35:21 +01:00
parent 0495828a55
commit e230d5164d
33 changed files with 197 additions and 258 deletions
+3 -3
View File
@@ -621,7 +621,7 @@ void PLOTTER::PlotPoly( const SHAPE_LINE_CHAIN& aCornerList, FILL_T aFill, int a
}
void PLOTTER::Text( const VECTOR2I& aPos,
void PLOTTER::Text( const VECTOR2I& aPos,
const COLOR4D& aColor,
const wxString& aText,
const EDA_ANGLE& aOrient,
@@ -678,7 +678,7 @@ void PLOTTER::Text( const VECTOR2I& aPos,
}
if( !aFont )
aFont = KIFONT::FONT::GetFont();
aFont = KIFONT::FONT::GetFont( m_renderSettings->GetDefaultFont() );
aFont->Draw( &callback_gal, aText, aPos, attributes, aFontMetrics );
}
@@ -723,7 +723,7 @@ void PLOTTER::PlotText( const VECTOR2I& aPos,
} );
if( !aFont )
aFont = KIFONT::FONT::GetFont();
aFont = KIFONT::FONT::GetFont( m_renderSettings->GetDefaultFont() );
aFont->Draw( &callback_gal, aText, aPos, attributes, aFontMetrics );
}