Font question for 2.4.0

Phil Longstaff plongstaff at rogers.com
Mon May 10 11:02:20 EDT 2010


Now that webkit issues seem to be sorted out on windows, the issue of fonts in webkit has arisen.  Bug 616606 (https://bugzilla.gnome.org/show_bug.cgi?id=616606) indicates that reports in chinese don't show up until a chinese font is selected in the stylesheet.  Makes sense.  The default-CSS stylesheet has Arial as the default font.  The easy/technicolor/... stylesheets, which can be used for invoices, don't allow fonts to be specified, so a patch to 616606 was provided to set all fonts in webkit to be the default windows font.  For Chinese fonts (I don't know, but I'd be surprised if there were serif and sans-serif Chinese fonts), this is probably fine, but the patch sets the default for cursive/monospaced/serif/sans-serif/... (all font families) to the default Windows font.  This can't be right.

I haven't really looked at it, but I think that font handling/specification can be added to all stylesheets for 2.4.0.  The default font used will be the user-specified Windows default font (or Linux - it is retrieved from pango using pango_font_description_get_family()).  I hesitate to get rid of the stylesheet named "Default" in case any users have stylesheets based on it or modified "Default" stylesheets.  I suppose I could remove "Default" and rename "Default-CSS" to "Default" and hope that this hasn't screwed up anybody.

 Phil
---------
I used to be a hypochondriac AND a kleptomaniac. So I took something for it.


More information about the gnucash-devel mailing list