mirror of
https://github.com/penpot/penpot.git
synced 2026-05-24 17:33:41 +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,20 +1411,23 @@
|
|||||||
(get span))
|
(get span))
|
||||||
text (subs (:text element) start-pos end-pos)]
|
text (subs (:text element) start-pos end-pos)]
|
||||||
|
|
||||||
{:x x
|
(d/patch-object
|
||||||
:y (+ y height)
|
txt/default-text-attrs
|
||||||
:width width
|
(d/without-nils
|
||||||
:height height
|
{:x x
|
||||||
:direction (dr/translate-direction direction)
|
:y (+ y height)
|
||||||
:font-family (get element :font-family)
|
:width width
|
||||||
:font-size (get element :font-size)
|
:height height
|
||||||
:font-weight (get element :font-weight)
|
:direction (dr/translate-direction direction)
|
||||||
:text-transform (get element :text-transform)
|
:font-family (get element :font-family)
|
||||||
:text-decoration (get element :text-decoration)
|
:font-size (get element :font-size)
|
||||||
:letter-spacing (get element :letter-spacing)
|
:font-weight (get element :font-weight)
|
||||||
:font-style (get element :font-style)
|
:text-transform (get element :text-transform)
|
||||||
:fills (get element :fills)
|
:text-decoration (get element :text-decoration)
|
||||||
:text text}))))]
|
:letter-spacing (get element :letter-spacing)
|
||||||
|
:font-style (get element :font-style)
|
||||||
|
:fills (get element :fills)
|
||||||
|
:text text}))))))]
|
||||||
(mem/free)
|
(mem/free)
|
||||||
|
|
||||||
result)))
|
result)))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user