Use monospace (teletype) font in show simulator netlist

May need fixing again for gtk (see #6587)
This commit is contained in:
Marek Roszko 2020-12-02 19:27:10 -05:00
parent 43fe228367
commit e5f340d176
1 changed files with 4 additions and 0 deletions

View File

@ -1380,6 +1380,10 @@ void SIM_PLOT_FRAME::onShowNetlist( wxCommandEvent& event )
text->StyleSetBackground( wxSTC_STYLE_LINENUMBER, wxColour( 220, 220, 220 ) ); text->StyleSetBackground( wxSTC_STYLE_LINENUMBER, wxColour( 220, 220, 220 ) );
text->SetMarginType( MARGIN_LINE_NUMBERS, wxSTC_MARGIN_NUMBER ); text->SetMarginType( MARGIN_LINE_NUMBERS, wxSTC_MARGIN_NUMBER );
wxFont font = wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_TELETYPE,
wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString );
text->StyleSetFont( wxSTC_STYLE_DEFAULT, font );
text->SetWrapMode( wxSTC_WRAP_WORD ); text->SetWrapMode( wxSTC_WRAP_WORD );
text->SetText( source ); text->SetText( source );