mirror of
https://github.com/penpot/penpot.git
synced 2025-06-21 04:37:02 +02:00
⬆️ Update google fonts
This commit is contained in:
parent
f6fe41af96
commit
d2cd99ed44
5 changed files with 44794 additions and 37427 deletions
File diff suppressed because it is too large
Load diff
44791
frontend/resources/fonts/gfonts.2025.05.19.json
Normal file
44791
frontend/resources/fonts/gfonts.2025.05.19.json
Normal file
File diff suppressed because it is too large
Load diff
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue