Merge pull request #6498 from penpot/niwinz-develop-update-fonts

⬆️ Update google fonts
This commit is contained in:
Alejandro Alonso 2025-05-30 13:28:08 +02:00 committed by GitHub
commit 78aaf28532
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 44794 additions and 37427 deletions

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