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.woff deleted file mode 100644 index dc1d85f5706..00000000000 Binary files a/app/src/assets/fonts/JetBrainsMono-1.0.3/JetBrainsMono-Regular.woff and /dev/null differ diff --git a/app/src/assets/fonts/JetBrainsMono-2.304/JetBrainsMono-Regular.woff2 b/app/src/assets/fonts/JetBrainsMono-2.304/JetBrainsMono-Regular.woff2 new file mode 100644 index 00000000000..40da4276519 Binary files /dev/null and b/app/src/assets/fonts/JetBrainsMono-2.304/JetBrainsMono-Regular.woff2 differ diff --git a/app/src/assets/fonts/JetBrainsMono-1.0.3/LICENSE b/app/src/assets/fonts/JetBrainsMono-2.304/LICENSE similarity index 99% rename from app/src/assets/fonts/JetBrainsMono-1.0.3/LICENSE rename to app/src/assets/fonts/JetBrainsMono-2.304/LICENSE index bc2ac78e1ee..4d76c789291 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 and redistributed 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 reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The diff --git a/app/src/assets/fonts/LxgwWenKai-Lite-1.311/LICENSE b/app/src/assets/fonts/LxgwWenKai-Lite-1.501/LICENSE similarity index 97% rename from app/src/assets/fonts/LxgwWenKai-Lite-1.311/LICENSE rename to app/src/assets/fonts/LxgwWenKai-Lite-1.501/LICENSE index ecce74a9ee9..bf48308d5b8 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.ttf similarity index 67% rename from app/src/assets/fonts/LxgwWenKai-Lite-1.311/LXGWWenKaiLite-Regular.ttf rename to app/src/assets/fonts/LxgwWenKai-Lite-1.501/LXGWWenKaiLite-Regular.ttf index 6d55e919b65..52e9959610e 100644 Binary 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 differ diff --git a/app/src/assets/scss/component/_typography.scss b/app/src/assets/scss/component/_typography.scss index 6a2f5c0955c..965c0c2c7e4 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.go index d7ae9c00d1a..f0fba8e5d0c 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)