0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-15 17:21:17 -05:00

Merge pull request #2238 from penpot/alotor-bug-texts

🐛 Fix problem with texts for non existing fonts
This commit is contained in:
Alejandro 2022-09-07 11:28:21 +02:00 committed by GitHub
commit c19237b45a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View file

@ -8,6 +8,7 @@
- Fix error when moving nested frames outside [Taiga #4017](https://tree.taiga.io/project/penpot/issue/4017)
- Fix problem when hovering over nested frames [Taiga #4018](https://tree.taiga.io/project/penpot/issue/4018)
- Fix problem editing rotated texts [Taiga #4026](https://tree.taiga.io/project/penpot/issue/4026)
- Fix problem with texts for non existing fonts [Taiga #4087](https://tree.taiga.io/project/penpot/issue/4087)
## 1.15.2-beta

View file

@ -181,7 +181,7 @@
(rx/tap
(fn [resp]
(when (or (< (:status resp) 200) (>= (:status resp) 300))
(rx/throw (js/Error. "Error fetching data uri" #js {:cause (clj->js resp)})))))
(throw (js/Error. "Error fetching data uri" #js {:cause (clj->js resp)})))))
(rx/map :body)
(rx/mapcat wapi/read-file-as-data-url)

View file

@ -56,7 +56,8 @@
(-> (fonts/ensure-loaded! font-id)
(p/then #(when (not (dom/check-font? font))
(load-font font))))))
(load-font font)))
(p/catch #(.error js/console (dm/str "Cannot load font" font-id) %)))))
(defn- calc-text-node-positions
[shape-id]