⬆️ Update google fonts

This commit is contained in:
Andrey Antukh 2025-05-19 11:53:13 +02:00 committed by Alejandro Alonso
parent f6fe41af96
commit d2cd99ed44
5 changed files with 44794 additions and 37427 deletions

View file

@ -82,6 +82,7 @@ A non exhaustive list of changes:
- Add styles for Inkeep Chat at workspace [Taiga #10708](https://tree.taiga.io/project/penpot/us/10708)
- Add configuration for air gapped installations with Docker
- Support system color scheme [Github #5030](https://github.com/penpot/penpot/issues/5030)
- Update google fonts (at 2025/05/19)
### :bug: Bugs fixed
- Fix getCurrentUser for plugins api [Taiga #11057](https://tree.taiga.io/project/penpot/issue/11057)

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -26,7 +26,7 @@
(log/set-level! :info)
(def google-fonts
(preload-gfonts "fonts/gfonts.2023.07.07.json"))
(preload-gfonts "fonts/gfonts.2025.05.19.json"))
(def local-fonts
[{:id "sourcesanspro"

View file

@ -107,7 +107,7 @@
[font-id font-variant-id]
(let [variant (font-db-data font-id font-variant-id)]
(if-let [ttf-url (:ttf-url variant)]
(str/replace ttf-url "http://fonts.gstatic.com/s/" (u/join cf/public-uri "/internal/gfonts/font/"))
(str/replace ttf-url "https://fonts.gstatic.com/s/" (u/join cf/public-uri "/internal/gfonts/font/"))
nil)))
(defn- font-id->ttf-url