Make last font used the default for next text box

This commit is contained in:
alonso.torres 2021-07-14 21:51:30 +02:00
parent 26467187c4
commit 9ebafddac2
7 changed files with 31 additions and 14 deletions

View file

@ -47,8 +47,8 @@
text-align (:text-align data "start")
grow-type (:grow-type shape)
base #js {:fontSize (str (:font-size txt/default-text-attrs) "px")
:lineHeight (:line-height txt/default-text-attrs)
base #js {:fontSize (str (:font-size data (:font-size txt/default-text-attrs)) "px")
:lineHeight (:line-height data (:line-height txt/default-text-attrs))
:margin "inherit"}]
(cond-> base
(some? line-height) (obj/set! "lineHeight" line-height)