Index: src/html/gnc-html-webkit.c
===================================================================
--- src/html/gnc-html-webkit.c	(版本 19130)
+++ src/html/gnc-html-webkit.c	(工作副本)
@@ -116,6 +116,9 @@
     GncHtmlWebkitPrivate* priv;
     GncHtmlWebkitPrivate* new_priv;
 
+    WebKitWebSettings* webkit_settings = NULL;
+    const char* default_font_family = NULL;
+
     new_priv = g_realloc( GNC_HTML(self)->priv, sizeof(GncHtmlWebkitPrivate) );
     priv = self->priv = new_priv;
     GNC_HTML(self)->priv = (GncHtmlPrivate*)priv;
@@ -123,6 +126,27 @@
     priv->html_string = NULL;
     priv->web_view = WEBKIT_WEB_VIEW(webkit_web_view_new());
 
+    /* Get the default font family from GtkStyle of a GtkWidget(priv-web_view). */
+    default_font_family = pango_font_description_get_family( gtk_rc_get_style(GTK_WIDGET(priv->web_view))->font_desc );
+
+    /* get default webkit settings */
+    webkit_settings = webkit_web_view_get_settings (priv->web_view);
+    g_object_set (G_OBJECT(webkit_settings), "default-encoding", "utf-8", NULL);
+    if (default_font_family == NULL)
+    {
+        PWARN("webkit_settings: Cannot get default font family."); 
+    }else{
+        g_object_set (G_OBJECT(webkit_settings),
+            "cursive-font-family", default_font_family,
+            "default-font-family", default_font_family,
+            "fantasy-font-family", default_font_family,
+            "monospace-font-family", default_font_family,
+            "sans-serif-font-family", default_font_family,	
+            "serif-font-family", default_font_family,
+            NULL);
+        PWARN("webkit_settings: Set all default font to [%s]", default_font_family);
+    }
+
     gtk_container_add( GTK_CONTAINER(priv->base.container),
                        GTK_WIDGET(priv->web_view) );
 
Index: src/report/stylesheets/stylesheet-css.scm
===================================================================
--- src/report/stylesheets/stylesheet-css.scm	(版本 19130)
+++ src/report/stylesheets/stylesheet-css.scm	(工作副本)
@@ -60,7 +60,15 @@
 		    (set! font-style "italic")
 			(set! font-name (string-append (string-take font-name font-style-idx)
 			                               (string-drop font-name (+ font-style-idx 7))))
-		))
+		)
+		(begin
+			(set! font-style-idx (string-contains-ci font-name " oblique"))
+			(if font-style-idx
+				(begin
+					(set! font-style "oblique")
+					(set! font-name (string-append (string-take font-name font-style-idx)
+												   (string-drop font-name (+ font-style-idx 8))))
+		))))
 	(set! font-family font-name)
 	(set! result (string-append
 		"font-family: " font-family "; "
@@ -202,22 +210,24 @@
        'attribute (list "cellpadding" padding))
 
     (gnc:html-document-set-style!
+       ssdoc "date-cell"
+       'tag "td"
+       'attribute (list "class" "date-cell"))
+
+    (gnc:html-document-set-style!
        ssdoc "anchor-cell"
        'tag "td"
-       'attribute (list "class" "anchor-cell")
-	   'attribute (list "nowrap"))
+       'attribute (list "class" "anchor-cell"))
 
     (gnc:html-document-set-style!
        ssdoc "number-cell"
        'tag "td"
-       'attribute (list "class" "number-cell")
-	   'attribute (list "nowrap"))
+       'attribute (list "class" "number-cell"))
 
     (gnc:html-document-set-style!
        ssdoc "number-cell-neg"
        'tag "td"
-       'attribute (list "class" "number-cell-neg")
-	   'attribute (list "nowrap"))
+       'attribute (list "class" "number-cell neg"))
 
     (gnc:html-document-set-style!
        ssdoc "number-header"
@@ -232,14 +242,12 @@
     (gnc:html-document-set-style!
        ssdoc "total-number-cell"
        'tag "td"
-       'attribute (list "class" "total-number-cell")
-	   'attribute (list "nowrap"))
+       'attribute (list "class" "total-number-cell"))
 
     (gnc:html-document-set-style!
        ssdoc "total-number-cell-neg"
        'tag "td"
-       'attribute (list "class" "total-number-cell-neg")
-	   'attribute (list "nowrap"))
+       'attribute (list "class" "total-number-cell neg"))
 
     (gnc:html-document-set-style!
        ssdoc "total-label-cell"
@@ -283,14 +291,17 @@
 	  (string-append
 		  "h3 { " title-font-info " }\n"
 		  "a { " account-link-font-info " }\n"
+		  "body, p, table, tr, td { text-align: left; " text-cell-font-info " }\n"
 		  "th { text-align: right; " number-header-font-info " }\n"
-	      "td.number-cell { text-align: right; " number-cell-font-info " }\n"
-	      "td.number-cell-neg { text-align: right; " (if negative-red? "color: red; " "") number-cell-font-info " }\n"
+		  "td.neg { " (if negative-red? "color: red; " "") " }\n"
+		  "td.number-cell, td.total-number-cell { text-align: right; white-space: nowrap; }\n"
+		  "td.date-cell { white-space: nowrap; }\n"
+	      "td.anchor-cell { white-space: nowrap; " text-cell-font-info " }\n"
+	      "td.number-cell { " number-cell-font-info " }\n"
 		  "td.number-header { text-align: right; " number-header-font-info " }\n"
-		  "td.text-cell { text-align: left; " text-cell-font-info " }\n"
-		  "td.total-number-cell { text-align:right; " total-number-cell-font-info " }\n"
-		  "td.total-number-cell-neg { text-align:right; " (if negative-red? "color: red; " "") total-number-cell-font-info " }\n"
-		  "td.total-label-cell { text-align: left; " total-label-cell-font-info " }\n"
+		  "td.text-cell { " text-cell-font-info " }\n"
+		  "td.total-number-cell { " total-number-cell-font-info " }\n"
+		  "td.total-label-cell { " total-label-cell-font-info " }\n"
 		  "td.centered-label-cell { text-align: center; " centered-label-cell-font-info " }\n"
 		  ))
 
