diff --git a/CHANGES.md b/CHANGES.md index 2ecd118aa..81e908a69 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -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!) diff --git a/exporter/src/app/browser.cljs b/exporter/src/app/browser.cljs index a3775a048..71fb4f965 100644 --- a/exporter/src/app/browser.cljs +++ b/exporter/src/app/browser.cljs @@ -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) diff --git a/frontend/src/app/main/ui/shapes/text/styles.cljs b/frontend/src/app/main/ui/shapes/text/styles.cljs index 1ee53dd4d..263424b68 100644 --- a/frontend/src/app/main/ui/shapes/text/styles.cljs +++ b/frontend/src/app/main/ui/shapes/text/styles.cljs @@ -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)