mirror of
https://github.com/penpot/penpot.git
synced 2025-01-08 16:00:19 -05:00
🐛 Fix problem with texts for non existing fonts
This commit is contained in:
parent
00a7760c0f
commit
c47f5ca186
3 changed files with 4 additions and 2 deletions
|
@ -8,6 +8,7 @@
|
||||||
- Fix error when moving nested frames outside [Taiga #4017](https://tree.taiga.io/project/penpot/issue/4017)
|
- 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 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 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
|
## 1.15.2-beta
|
||||||
|
|
||||||
|
|
|
@ -181,7 +181,7 @@
|
||||||
(rx/tap
|
(rx/tap
|
||||||
(fn [resp]
|
(fn [resp]
|
||||||
(when (or (< (:status resp) 200) (>= (:status resp) 300))
|
(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/map :body)
|
||||||
(rx/mapcat wapi/read-file-as-data-url)
|
(rx/mapcat wapi/read-file-as-data-url)
|
||||||
|
|
|
@ -56,7 +56,8 @@
|
||||||
|
|
||||||
(-> (fonts/ensure-loaded! font-id)
|
(-> (fonts/ensure-loaded! font-id)
|
||||||
(p/then #(when (not (dom/check-font? font))
|
(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
|
(defn- calc-text-node-positions
|
||||||
[shape-id]
|
[shape-id]
|
||||||
|
|
Loading…
Reference in a new issue