mirror of
https://github.com/penpot/penpot.git
synced 2025-08-03 02:58:21 +02:00
🐛 Fix custom font rendering on exporting shapes.
This commit is contained in:
parent
1a81631886
commit
8c68e29bf3
8 changed files with 100 additions and 49 deletions
|
@ -356,8 +356,8 @@
|
|||
|
||||
([shape {:keys [round-coords?]
|
||||
:or {round-coords? true}}]
|
||||
(let [shape (apply-displacement shape)
|
||||
center (gco/center-shape shape)
|
||||
(let [shape (apply-displacement shape)
|
||||
center (gco/center-shape shape)
|
||||
modifiers (:modifiers shape)]
|
||||
(if (and modifiers center)
|
||||
(let [transform (modifiers->transform center modifiers)]
|
||||
|
@ -376,7 +376,7 @@
|
|||
:y (- (:y new-selrect 0) (:y selrect 0))
|
||||
:width (- (:width new-selrect 1) (:width selrect 1))
|
||||
:height (- (:height new-selrect 1) (:height selrect 1))}]
|
||||
|
||||
|
||||
(cond-> group
|
||||
(and (some? svg-viewbox) (some? selrect) (some? new-selrect))
|
||||
(update :svg-viewbox
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue