From fe6d699e44dd8b30fd6106fa0f7eeb2c5a8d9122 Mon Sep 17 00:00:00 2001 From: Hongliang TIAN Date: Mon, 13 Aug 2012 23:10:08 +0800 Subject: [PATCH] Improve small font rendering in Webkit browsers The style "-webkit-text-stroke-width:0.2px;" is used in #pdf-main to improve some font of small size, which looks really bad in Chrome & Safari --- src/Consts.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Consts.cc b/src/Consts.cc index f0cff08..f894937 100644 --- a/src/Consts.cc +++ b/src/Consts.cc @@ -9,6 +9,8 @@ const double EPS = 1e-6; +// The style "-webkit-text-stroke-width:0.2px;" is used in #pdf-main to +// improve some font of small size, which looks really bad in Chrome & Safari const std::string HTML_HEAD = "\n\ \ \ @@ -22,6 +24,7 @@ const std::string HTML_HEAD = "\n\ right:0;\ overflow:auto;\ background-color:grey;\ + -webkit-text-stroke-width:0.2px; \ }\ #pdf-main > .p {\ position:relative;\