Explorar o código

Merge pull request #5453 from overleaf/ae-body-font-smoothing

Fix effect of font-smoothing style on PDF rendering

GitOrigin-RevId: 0b891cb003bf50c62059bf9d85a2da9535a3d625
Alf Eaton %!s(int64=5) %!d(string=hai) anos
pai
achega
5c82945e12

+ 2 - 0
services/web/frontend/stylesheets/app/editor/pdf.less

@@ -212,6 +212,8 @@
       overflow: auto;
       overflow: auto;
       width: 100%;
       width: 100%;
       height: 100%;
       height: 100%;
+      -webkit-font-smoothing: initial;
+      -moz-osx-font-smoothing: initial;
     }
     }
     &:focus-within {
     &:focus-within {
       outline: none;
       outline: none;

+ 1 - 1
services/web/frontend/stylesheets/core/type.less

@@ -2,7 +2,7 @@
 // Typography
 // Typography
 // --------------------------------------------------
 // --------------------------------------------------
 
 
-* {
+body {
   -webkit-font-smoothing: antialiased;
   -webkit-font-smoothing: antialiased;
   text-rendering: optimizeLegibility;
   text-rendering: optimizeLegibility;
   -moz-osx-font-smoothing: grayscale;
   -moz-osx-font-smoothing: grayscale;