1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 04:50:09 +00:00

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
This commit is contained in:
Hongliang TIAN 2012-08-13 23:10:08 +08:00 committed by Lu Wang
parent 39e220547a
commit fe6d699e44

View File

@ -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 = "<!DOCTYPE html>\n\
<html><head>\
<meta charset=\"utf-8\">\
@ -22,6 +24,7 @@ const std::string HTML_HEAD = "<!DOCTYPE html>\n\
right:0;\
overflow:auto;\
background-color:grey;\
-webkit-text-stroke-width:0.2px; \
}\
#pdf-main > .p {\
position:relative;\