feat: custom font

This commit is contained in:
Erzbir
2025-11-18 12:03:15 +08:00
parent ad6f94ee5b
commit 7bf2286776
2 changed files with 53 additions and 0 deletions
+18
View File
@@ -102,6 +102,24 @@ spec:
- label: "custom"
value: "custom"
- $formkit: checkbox
name: custom_font_enable
id: custom_font_enable
label: 启用自定义字体文件
value: false
help: '如果启用 "使用系统字体", 此配置项不生效'
- $formkit: attachment
if: "$get(custom_font_enable).value === true"
name: custom_font_file
label: 自定义字体文件
value: ""
- $formkit: text
if: "$get(custom_font_enable).value === true"
name: custom_font_name
label: 字体名称
help: "填写上传字体文件内部声明的 字体全名 或 PostScript. 如果和上传的字体文件不匹配, 将从网络上下载字体"
value: ""
- $formkit: text
if: "$get(time_style).value === 'custom'"
name: custom_time_style