mirror of
https://github.com/penpot/penpot.git
synced 2026-08-01 02:46:20 +00:00
🐛 Fix font fetching on embedding it.
This commit is contained in:
parent
4f20d22a4f
commit
69031bb8e1
@ -52,8 +52,8 @@
|
|||||||
(if (= :google backend)
|
(if (= :google backend)
|
||||||
(-> (fonts/gfont-url family [{:id font-variant-id}])
|
(-> (fonts/gfont-url family [{:id font-variant-id}])
|
||||||
(js/fetch)
|
(js/fetch)
|
||||||
(p/then (fn [res] (.text res)))))
|
(p/then (fn [res] (.text res))))
|
||||||
(get-local-font-css font-id font-variant-id)))
|
(get-local-font-css font-id font-variant-id))))
|
||||||
|
|
||||||
(defn get-text-font-data [text]
|
(defn get-text-font-data [text]
|
||||||
(->> text
|
(->> text
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user