Use monospace (teletype) font in show simulator netlist
May need fixing again for gtk (see #6587)
This commit is contained in:
parent
43fe228367
commit
e5f340d176
|
@ -1380,6 +1380,10 @@ void SIM_PLOT_FRAME::onShowNetlist( wxCommandEvent& event )
|
|||
text->StyleSetBackground( wxSTC_STYLE_LINENUMBER, wxColour( 220, 220, 220 ) );
|
||||
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->SetText( source );
|
||||
|
|
Loading…
Reference in New Issue