You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am wanting to use this package to show some JavaScript code. I wished to change the font and font-size for my CodeArea control and coded:
codeArea = new CodeArea();
codeArea.setFont(Font.font("consolas", 11.0));
codeArea.setParagraphGraphicFactory(LineNumberFactory.get(codeArea));
However, when the control is shown, the font doesn't change but the size is fine however the moment I type a character, the font size changes back to the default. I think I am missing how to set the font for the control as a whole. Would you be able to advise?
The text was updated successfully, but these errors were encountered:
I am wanting to use this package to show some JavaScript code. I wished to change the font and font-size for my CodeArea control and coded:
However, when the control is shown, the font doesn't change but the size is fine however the moment I type a character, the font size changes back to the default. I think I am missing how to set the font for the control as a whole. Would you be able to advise?
The text was updated successfully, but these errors were encountered: