Просмотр исходного кода

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

Fix effect of font-smoothing style on PDF rendering

GitOrigin-RevId: 0b891cb003bf50c62059bf9d85a2da9535a3d625
Alf Eaton 5 лет назад
Родитель
Сommit
5c82945e12

+ 2 - 0
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;

+ 1 - 1
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;