After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 515841 - Message text displayed using application font rather than document font
Message text displayed using application font rather than document font
Status: RESOLVED WONTFIX
Product: GtkHtml
Classification: Other
Component: Rendering
3.18.x
Other Linux
: Normal normal
: ---
Assigned To: Matthew Barnes
Evolution QA team
gnome[unmaintained]
Depends on:
Blocks:
 
 
Reported: 2008-02-11 18:54 UTC by Matthew Barnes
Modified: 2014-12-02 01:08 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Matthew Barnes 2008-02-11 18:54:02 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
Comment 1 Matthew Barnes 2008-02-11 19:09:43 UTC
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().)
Comment 2 Matthew Barnes 2008-03-11 01:05:55 UTC
Bumping version to a stable release.
Comment 3 André Klapper 2014-12-02 01:08:30 UTC
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).