From 37a6446e323430a9ef1430ca5deb8f75ae1e5c21 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Tue, 3 Sep 2024 11:17:05 +0200 Subject: [PATCH] :bug: Fix problem with font style --- frontend/src/app/plugins/text.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/plugins/text.cljs b/frontend/src/app/plugins/text.cljs index b5e398d65..bdcc67b04 100644 --- a/frontend/src/app/plugins/text.cljs +++ b/frontend/src/app/plugins/text.cljs @@ -193,7 +193,7 @@ :set (fn [self value] (let [font (fonts/get-font-data (obj/get self "fontId")) - variant (fonts/find-variant font {:weight (dm/str value)})] + variant (fonts/find-variant font {:style (dm/str value)})] (cond (nil? variant) (u/display-not-valid :fontStyle (dm/str "Font style '" value "' not supported for the current font")) @@ -456,7 +456,7 @@ (fn [self value] (let [id (obj/get self "$id") font (fonts/get-font-data (obj/get self "fontId")) - variant (fonts/find-variant font {:weight (dm/str value)})] + variant (fonts/find-variant font {:style (dm/str value)})] (cond (nil? variant) (u/display-not-valid :fontStyle (dm/str "Font style '" value "' not supported for the current font"))