From 8db114658be024fa894fbca4fb1f71d1b2a6975c Mon Sep 17 00:00:00 2001 From: Christopher Lam Date: Sat, 14 Apr 2018 22:43:19 +0800 Subject: [PATCH] html-font: add default font family Windows ships with GTK2 in which the default font styles are named "Sans" "Sans Bold" "Sans Normal" etc. There is no "Sans" font in Windows; I vote to add a default "Sans-Serif" font-family which is valid CSS. This ensures exported reports are shown as intended. --- gnucash/report/report-system/html-fonts.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnucash/report/report-system/html-fonts.scm b/gnucash/report/report-system/html-fonts.scm index 8ad15bd8dc..fee9af93fa 100644 --- a/gnucash/report/report-system/html-fonts.scm +++ b/gnucash/report/report-system/html-fonts.scm @@ -68,7 +68,7 @@ )))) (set! font-family font-name) (set! result (string-append - "font-family: " font-family "; " + "font-family: " font-family ", Sans-Serif; " "font-size: " font-size "pt; " (if font-style (string-append "font-style: " font-style "; ") "") (if font-weight (string-append "font-weight: " font-weight "; ") "")))