fix:修改字体为等宽字体

This commit is contained in:
许轲 2023-09-17 20:42:29 +08:00
parent ee393300f9
commit afbbdc650c

View File

@ -37,7 +37,7 @@ public class LineNumberTextArea extends StyleClassedTextArea {
public LineNumberTextArea() {
//
setPadding(new Insets(8, 0, 0, 0));
setStyle("-fx-font-family: 'Courier New';");
// 设置 LineNumberTextArea 的样式包括边框和背景颜色
getStyleClass().add("line-number-text-area");
this.setParagraphGraphicFactory(LineNumberFactory.get(this));