mirror of
https://github.com/penpot/penpot.git
synced 2026-05-30 04:08:08 +00:00
🐛 Fix font weight token (#7991)
This commit is contained in:
parent
a14b4561e7
commit
923c3c2dbd
@ -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)))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user