🐛 Fix font weight token (#7991)

This commit is contained in:
Alonso Torres 2025-12-22 16:58:26 +01:00 committed by GitHub
parent a14b4561e7
commit 923c3c2dbd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,6 +18,7 @@
[app.common.types.path :as path] [app.common.types.path :as path]
[app.common.types.path.impl :as path.impl] [app.common.types.path.impl :as path.impl]
[app.common.types.shape.layout :as ctl] [app.common.types.shape.layout :as ctl]
[app.common.types.text :as txt]
[app.common.uuid :as uuid] [app.common.uuid :as uuid]
[app.config :as cf] [app.config :as cf]
[app.main.refs :as refs] [app.main.refs :as refs]
@ -1410,6 +1411,9 @@
(get span)) (get span))
text (subs (:text element) start-pos end-pos)] text (subs (:text element) start-pos end-pos)]
(d/patch-object
txt/default-text-attrs
(d/without-nils
{:x x {:x x
:y (+ y height) :y (+ y height)
:width width :width width
@ -1423,7 +1427,7 @@
:letter-spacing (get element :letter-spacing) :letter-spacing (get element :letter-spacing)
:font-style (get element :font-style) :font-style (get element :font-style)
:fills (get element :fills) :fills (get element :fills)
:text text}))))] :text text}))))))]
(mem/free) (mem/free)
result))) result)))