An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Update fonts (#13228)
Jeffrey Chen1ca0fbce9bf7
diff --git a/app/src/assets/fonts/JetBrainsMono-1.0.3/JetBrainsMono-Regular.woff b/app/src/assets/fonts/JetBrainsMono-1.0.3/JetBrainsMono-Regular.woffdeleted file mode 100644index dc1d85f570..0000000000Binary files a/app/src/assets/fonts/JetBrainsMono-1.0.3/JetBrainsMono-Regular.woff and /dev/null differdiff --git a/app/src/assets/fonts/JetBrainsMono-2.304/JetBrainsMono-Regular.woff2 b/app/src/assets/fonts/JetBrainsMono-2.304/JetBrainsMono-Regular.woff2new file mode 100644index 0000000000..40da427651Binary files /dev/null and b/app/src/assets/fonts/JetBrainsMono-2.304/JetBrainsMono-Regular.woff2 differdiff --git a/app/src/assets/fonts/JetBrainsMono-1.0.3/LICENSE b/app/src/assets/fonts/JetBrainsMono-2.304/LICENSEsimilarity index 98%rename from app/src/assets/fonts/JetBrainsMono-1.0.3/LICENSErename to app/src/assets/fonts/JetBrainsMono-2.304/LICENSEindex bc2ac78e1e..4d76c78929 100644--- a/app/src/assets/fonts/JetBrainsMono-1.0.3/LICENSE+++ b/app/src/assets/fonts/JetBrainsMono-2.304/LICENSE@@ -1,8 +1,8 @@Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)This Font Software is licensed under the SIL Open Font License, Version 1.1.--This license is copied below, and is also available with a FAQ at: https://scripts.sil.org/OFL+This license is copied below, and is also available with a FAQ at:+https://scripts.sil.org/OFL-----------------------------------------------------------@@ -18,7 +18,7 @@ with others.The OFL allows the licensed fonts to be used, studied, modified andredistributed freely as long as they are not sold by themselves. The-fonts, including any derivative works, can be bundled, embedded,+fonts, including any derivative works, can be bundled, embedded,redistributed and/or sold with any software provided that any reservednames are not used by derivative works. The fonts and derivatives,however, cannot be released under any other type of license. Thediff --git a/app/src/assets/fonts/LxgwWenKai-Lite-1.311/LICENSE b/app/src/assets/fonts/LxgwWenKai-Lite-1.501/LICENSEsimilarity index 97%rename from app/src/assets/fonts/LxgwWenKai-Lite-1.311/LICENSErename to app/src/assets/fonts/LxgwWenKai-Lite-1.501/LICENSEindex ecce74a9ee..bf48308d5b 100644--- a/app/src/assets/fonts/LxgwWenKai-Lite-1.311/LICENSE+++ b/app/src/assets/fonts/LxgwWenKai-Lite-1.501/LICENSE@@ -1,9 +1,9 @@-Copyright 2021-2023 LXGW (https://github.com/lxgw/LxgwWenKai)+Copyright 2021-2024 LXGW (https://github.com/lxgw/LxgwWenKai)Copyright 2020 The Klee Project Authors (https://github.com/fontworks-fonts/Klee)This Font Software is licensed under the SIL Open Font License, Version 1.1.This license is copied below, and is also available with a FAQ at:-http://scripts.sil.org/OFL+https://openfontlicense.org-----------------------------------------------------------diff --git a/app/src/assets/fonts/LxgwWenKai-Lite-1.311/LXGWWenKaiLite-Regular.ttf b/app/src/assets/fonts/LxgwWenKai-Lite-1.501/LXGWWenKaiLite-Regular.ttfsimilarity index 67%rename from app/src/assets/fonts/LxgwWenKai-Lite-1.311/LXGWWenKaiLite-Regular.ttfrename to app/src/assets/fonts/LxgwWenKai-Lite-1.501/LXGWWenKaiLite-Regular.ttfindex 6d55e919b6..52e9959610 100644Binary files a/app/src/assets/fonts/LxgwWenKai-Lite-1.311/LXGWWenKaiLite-Regular.ttf and b/app/src/assets/fonts/LxgwWenKai-Lite-1.501/LXGWWenKaiLite-Regular.ttf differdiff --git a/app/src/assets/scss/component/_typography.scss b/app/src/assets/scss/component/_typography.scssindex 6a2f5c0955..965c0c2c7e 100644--- a/app/src/assets/scss/component/_typography.scss+++ b/app/src/assets/scss/component/_typography.scss@@ -1,6 +1,6 @@@font-face {font-family: 'JetBrainsMono-Regular';- src: url(../fonts/JetBrainsMono-1.0.3/JetBrainsMono-Regular.woff) format('woff');+ src: url(../fonts/JetBrainsMono-2.304/JetBrainsMono-Regular.woff2) format('woff2');}.b3-typography,diff --git a/kernel/model/export.go b/kernel/model/export.goindex d7ae9c00d1..f0fba8e5d0 100644--- a/kernel/model/export.go+++ b/kernel/model/export.go@@ -1076,7 +1076,7 @@ func processPDFWatermark(pdfCtx *pdfcpu.Context, watermark bool) {desc = descBuilder.String()desc = desc[:len(desc)-1]- fontPath := filepath.Join(util.AppearancePath, "fonts", "LxgwWenKai-Lite-1.311", "LXGWWenKaiLite-Regular.ttf")+ fontPath := filepath.Join(util.AppearancePath, "fonts", "LxgwWenKai-Lite-1.501", "LXGWWenKaiLite-Regular.ttf")err := api.InstallFonts([]string{fontPath})if err != nil {logging.LogErrorf("install font [%s] failed: %s", fontPath, err)