0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-07 15:39:42 -05:00

🐛 Fix problem with text rendering on export

This commit is contained in:
alonso.torres 2021-11-05 12:11:28 +01:00 committed by Andrés Moya
parent 503f0bee69
commit 78d027b25e
3 changed files with 5 additions and 4 deletions

View file

@ -18,6 +18,7 @@
- Fix problem with view mode comments [Taiga #2226](https://tree.taiga.io/project/penpot/issue/2226).
- Disallow to create a component when already has one [Taiga #2237](https://tree.taiga.io/project/penpot/issue/2237).
- Add ellipsis in long labels for input fields [Taiga #2224](https://tree.taiga.io/project/penpot/issue/2224)
- Fix problem with text rendering on export [Taiga #2223](https://tree.taiga.io/project/penpot/issue/2223)
### :arrow_up: Deps updates
### :heart: Community contributions by (Thank you!)

View file

@ -104,7 +104,7 @@
(def browser-pool-factory
(letfn [(create []
(let [path (cf/get :browser-executable-path "/usr/bin/google-chrome")]
(-> (pp/launch #js {:executablePath path :args #js ["--no-sandbox"]})
(-> (pp/launch #js {:executablePath path :args #js ["--no-sandbox" "--font-render-hinting=none"]})
(p/then (fn [browser]
(let [id (deref pool-browser-id)]
(log/info :origin "factory" :action "create" :browser-id id)

View file

@ -46,7 +46,7 @@
(defn generate-paragraph-styles
[shape data]
(let [line-height (:line-height data)
(let [line-height (:line-height data 1.2)
text-align (:text-align data "start")
grow-type (:grow-type shape)
@ -60,10 +60,10 @@
(defn generate-text-styles
[data]
(let [letter-spacing (:letter-spacing data)
(let [letter-spacing (:letter-spacing data 0)
text-decoration (:text-decoration data)
text-transform (:text-transform data)
line-height (:line-height data)
line-height (:line-height data 1.2)
font-id (:font-id data (:font-id txt/default-text-attrs))
font-variant-id (:font-variant-id data)