From 5c82945e1212afd7be2868b06d8a083207a8b512 Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Thu, 21 Oct 2021 09:09:10 +0100 Subject: [PATCH] Merge pull request #5453 from overleaf/ae-body-font-smoothing Fix effect of font-smoothing style on PDF rendering GitOrigin-RevId: 0b891cb003bf50c62059bf9d85a2da9535a3d625 --- services/web/frontend/stylesheets/app/editor/pdf.less | 2 ++ services/web/frontend/stylesheets/core/type.less | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/services/web/frontend/stylesheets/app/editor/pdf.less b/services/web/frontend/stylesheets/app/editor/pdf.less index 6dcea4a449..4aee180b87 100644 --- a/services/web/frontend/stylesheets/app/editor/pdf.less +++ b/services/web/frontend/stylesheets/app/editor/pdf.less @@ -212,6 +212,8 @@ overflow: auto; width: 100%; height: 100%; + -webkit-font-smoothing: initial; + -moz-osx-font-smoothing: initial; } &:focus-within { outline: none; diff --git a/services/web/frontend/stylesheets/core/type.less b/services/web/frontend/stylesheets/core/type.less index 6c9e1f3960..224b075a59 100755 --- a/services/web/frontend/stylesheets/core/type.less +++ b/services/web/frontend/stylesheets/core/type.less @@ -2,7 +2,7 @@ // Typography // -------------------------------------------------- -* { +body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; -moz-osx-font-smoothing: grayscale;