GNOME Bugzilla – Bug 515841
Message text displayed using application font rather than document font
Last modified: 2014-12-02 01:08:30 UTC
Forwarding from a downstream bug report: http://bugzilla.redhat.com/show_bug.cgi?id=430247 Description of problem: message text defaults to using the 'Application font' specified in the gnome desktop 'Appearance Preferences' - i think it should be using the 'Document font'. Version-Release number of selected component (if applicable): evolution-2.12.3-1.fc8
I agree with the reporter. Confirming and assigning this to myself because I think I know how to fix it. GtkHTML needs to define a "variable_font_name" style property to complement its "fixed_font_name" style property. If that's not set then we need to grab the font name from GConf (/desktop/gnome/interface/document_font_name). This all happens in gtk_html_set_fonts(). And we'll need to adapt Evolution's mail-config.c:config_write_style(). (As an aside, we should reconsider GtkHTML's custom style properties. They would make more sense as normal GObject properties. Style properties are not designed to be overridden by applications and that's exactly what Evolution needs to do for its composer preferences. See the ugliness that is config_write_style().)
Bumping version to a stable release.
Since version 3.6, Evolution uses WebKit instead of GtkHtml for displaying messages. (And for completeness, Evolution 3.14 is planned to use WebKit also for composing and editing messages so GtkHtml will not receive any fixes anymore.) Hence I am closing this GtkHtml rendering bug report. We are sorry that your request was not handled in time when it was reported but unfortunately manpower is very limited (and does not allow testing every single reported issue separately again either). Please feel free to reopen this report (and move it to the "Evolution" product and the "Mail" component) if the problem described in this bug report still happens in a recent supported Evolution version which uses WebKit (the current stable Evolution version is 3.12).