]> git.kaiwu.me - haproxy.git/commitdiff
[MINOR] stats/html: use the arial font before helvetica
authorWilly Tarreau <w@1wt.eu>
Sun, 10 May 2009 18:08:10 +0000 (20:08 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 10 May 2009 18:35:59 +0000 (20:35 +0200)
The stats HTML output were barely readable on some browsers such as
firefox on Linux, due to the selected helvetica font which is too
small. Specifying "arial" first fixes the issue without changing the
table size. Also, the default size of 0.8em choosen to get 10px out
of 12px is wrong because it gets 9px when rounded down.
(cherry picked from commit a94f2d2ef944e3f54f50e938ff3c8de1a021f7ff)

src/dumpstats.c

index b5ecddc143fd48cea8729774d3dcb7eb650dc4f0..2338b656d7d96c703f50fdb856e21d86d3d182b3 100644 (file)
@@ -351,14 +351,14 @@ int stats_dump_http(struct session *s, struct uri_auth *uri)
                             "<meta http-equiv=\"content-type\" content=\"text/html; charset=iso-8859-1\">\n"
                             "<style type=\"text/css\"><!--\n"
                             "body {"
-                            " font-family: helvetica, arial;"
+                            " font-family: arial, helvetica, sans-serif;"
                             " font-size: 12px;"
                             " font-weight: normal;"
                             " color: black;"
                             " background: white;"
                             "}\n"
                             "th,td {"
-                            " font-size: 0.8em;"
+                            " font-size: 10px;"
                             " align: center;"
                             "}\n"
                             "h1 {"