From 69031bb8e1b7f05e476c7994bcddfdf49c8a91f4 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 7 Apr 2021 09:24:14 +0200 Subject: [PATCH] :bug: Fix font fetching on embedding it. --- frontend/src/app/main/ui/shapes/text/embed.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/main/ui/shapes/text/embed.cljs b/frontend/src/app/main/ui/shapes/text/embed.cljs index a8f7d9ab8..89b74ad6d 100644 --- a/frontend/src/app/main/ui/shapes/text/embed.cljs +++ b/frontend/src/app/main/ui/shapes/text/embed.cljs @@ -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