mirror of
https://github.com/penpot/penpot.git
synced 2025-05-31 04:56:10 +02:00
🐛 Fix problem with text rendering on export
This commit is contained in:
parent
503f0bee69
commit
78d027b25e
3 changed files with 5 additions and 4 deletions
|
@ -46,7 +46,7 @@
|
|||
|
||||
(defn generate-paragraph-styles
|
||||
[shape data]
|
||||
(let [line-height (:line-height data)
|
||||
(let [line-height (:line-height data 1.2)
|
||||
text-align (:text-align data "start")
|
||||
grow-type (:grow-type shape)
|
||||
|
||||
|
@ -60,10 +60,10 @@
|
|||
|
||||
(defn generate-text-styles
|
||||
[data]
|
||||
(let [letter-spacing (:letter-spacing data)
|
||||
(let [letter-spacing (:letter-spacing data 0)
|
||||
text-decoration (:text-decoration data)
|
||||
text-transform (:text-transform data)
|
||||
line-height (:line-height data)
|
||||
line-height (:line-height data 1.2)
|
||||
|
||||
font-id (:font-id data (:font-id txt/default-text-attrs))
|
||||
font-variant-id (:font-variant-id data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue