From 9562d2f1f019d83b71e61d946133ca7ae639c155 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Schr=C3=B6dl?= Date: Thu, 7 Aug 2025 11:13:04 +0200 Subject: [PATCH] :sparkles: Allow font-families with surrounding quotation marks (#7081) --- frontend/src/app/main/data/workspace/tokens/application.cljs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/main/data/workspace/tokens/application.cljs b/frontend/src/app/main/data/workspace/tokens/application.cljs index f71eb721f0..5db37804e1 100644 --- a/frontend/src/app/main/data/workspace/tokens/application.cljs +++ b/frontend/src/app/main/data/workspace/tokens/application.cljs @@ -30,6 +30,7 @@ [app.main.store :as st] [beicon.v2.core :as rx] [clojure.set :as set] + [cuerdas.core :as str] [potok.v2.core :as ptk])) (declare token-properties) @@ -284,7 +285,9 @@ (defn update-font-family ([value shape-ids attributes] (update-font-family value shape-ids attributes nil)) ([value shape-ids _attributes page-id] - (let [font-family (first value) + (let [font-family (-> (first value) + ;; Strip quotes around font-family like `"Inter"` + (str/trim #"[\"']")) font (some-> font-family (fonts/find-font-family)) text-attrs (if font