✨ Add font settings

This commit is contained in:
landaiqing committed 2025-05-29 15:42:16 +08:00
1 parent 5f102edcf7
commit 44f7baad10
28 files changed
+710 -13

No files matched your search

@@ -253,6 +253,21 @@ export class EditorConfig {
*/
"fontSize": number;
/**
* 字体族
*/
"fontFamily": string;
/**
* 字体粗细
*/
"fontWeight": string;
/**
* 行高
*/
"lineHeight": number;
/**
* 是否启用Tab缩进
*/
@@ -283,6 +298,15 @@ export class EditorConfig {
if (!("fontSize" in $$source)) {
this["fontSize"] = 0;
}
if (!("fontFamily" in $$source)) {
this["fontFamily"] = "";
}
if (!("fontWeight" in $$source)) {
this["fontWeight"] = "";
}
if (!("lineHeight" in $$source)) {
this["lineHeight"] = 0;
}
if (!("enableTabIndent" in $$source)) {
this["enableTabIndent"] = false;
}