Use schematic editor default font setting for plot job.

When the user does not define a font on the CLI or when plotting from a
job set, use the current schematic editor default font setting rather than
always defaulting to the "KiCad Font".

Set the --default-font CLI setting to an empty string so the the schematic
editor default font setting will be used.  Setting the --default-font CLI
option will override the schematic editor default font setting.
This commit is contained in:
Wayne Stambaugh
2025-04-19 12:56:39 -04:00
parent f102298eeb
commit f0f6b5a09b
2 changed files with 19 additions and 2 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ CLI::SCH_EXPORT_PLOT_COMMAND::SCH_EXPORT_PLOT_COMMAND( const std::string& aName,
m_argParser.add_argument( ARG_FONT_NAME )
.help( UTF8STDSTR( _( "Default font name" ) ) )
.default_value( wxString( KICAD_FONT_NAME ).ToStdString() );
.default_value( wxString( "" ).ToStdString() );
if( aPlotFormat == SCH_PLOT_FORMAT::PDF )
{