0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-18 10:41:29 -05:00

🐛 Fix font fetching on embedding it.

This commit is contained in:
Andrey Antukh 2021-04-07 09:24:14 +02:00
parent 4f20d22a4f
commit 69031bb8e1

View file

@ -52,8 +52,8 @@
(if (= :google backend)
(-> (fonts/gfont-url family [{:id font-variant-id}])
(js/fetch)
(p/then (fn [res] (.text res)))))
(get-local-font-css font-id font-variant-id)))
(p/then (fn [res] (.text res))))
(get-local-font-css font-id font-variant-id))))
(defn get-text-font-data [text]
(->> text