mirror of
https://github.com/penpot/penpot.git
synced 2025-07-22 23:27:17 +02:00
⚡ Improved text rendering performance
This commit is contained in:
parent
837b52aea1
commit
84e9f69213
7 changed files with 148 additions and 85 deletions
|
@ -63,7 +63,8 @@
|
|||
[shape-id]
|
||||
|
||||
(when (some? shape-id)
|
||||
(let [text-nodes (dom/query-all (dm/str "#html-text-node-" shape-id " .text-node"))
|
||||
(let [text-nodes (-> (dom/query (dm/fmt "#html-text-node-%" shape-id))
|
||||
(dom/query-all ".text-node"))
|
||||
load-fonts (->> text-nodes (map resolve-font))
|
||||
|
||||
process-text-node
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue