ScintillaNET icon indicating copy to clipboard operation
ScintillaNET copied to clipboard

Changing font after declaring StyleClearAll()

Open toehead2001 opened this issue 9 years ago • 3 comments

I see if I try to change the font after declaring StyleClearAll(), it will not work.

This does not work. The font stays as Courier New.: scintilla.Styles[Style.Default].Font = "Courier New"; scintilla.StyleClearAll() scintilla.Styles[Style.Default].Font = "Consolas";

This does work. The font changes to Consolas.: scintilla.Styles[Style.Default].Font = "Courier New"; scintilla.Styles[Style.Default].Font = "Consolas"; scintilla.StyleClearAll()

If this is the intended functionality, please explain why.

Thanks.

toehead2001 avatar Feb 06 '16 23:02 toehead2001

Your first example should work. If it doesn't we may need to look into this further.

jacobslusser avatar Feb 07 '16 04:02 jacobslusser

So you were able to confirm that the bug exists?

toehead2001 avatar Feb 08 '16 04:02 toehead2001

He added the bug label, so yeah i guess.

Ahmad45123 avatar Feb 08 '16 10:02 Ahmad45123