mirror of
https://github.com/penpot/penpot.git
synced 2026-08-06 12:58:55 +00:00
🐛 Fix problem with empty text rendering
This commit is contained in:
parent
21fc9289a6
commit
2d779a4414
@ -8,7 +8,6 @@
|
|||||||
(:require
|
(:require
|
||||||
[app.common.text :as txt]
|
[app.common.text :as txt]
|
||||||
[app.main.fonts :as fonts]
|
[app.main.fonts :as fonts]
|
||||||
[app.main.ui.shapes.text.fo-text :as fo]
|
|
||||||
[app.main.ui.shapes.text.svg-text :as svg]
|
[app.main.ui.shapes.text.svg-text :as svg]
|
||||||
[app.util.object :as obj]
|
[app.util.object :as obj]
|
||||||
[rumext.v2 :as mf]))
|
[rumext.v2 :as mf]))
|
||||||
@ -28,6 +27,5 @@
|
|||||||
(mf/with-memo [content]
|
(mf/with-memo [content]
|
||||||
(load-fonts! content))
|
(load-fonts! content))
|
||||||
|
|
||||||
(if (some? position-data)
|
(when (some? position-data)
|
||||||
[:> svg/text-shape props]
|
[:> svg/text-shape props])))
|
||||||
[:> fo/text-shape props])))
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user