GNOME Bugzilla – Bug 538182
pango_cairo_context_update_layout is not noop after gtk_widget_create_pango_layout
Last modified: 2014-08-27 14:46:28 UTC
But it should. The reason is that GTK+ uses _DEFAULT values ins some font options where Pango expects a fully resolved (no DEFAULTs) font options...
Created attachment 112700 [details] [review] patch
Created attachment 112701 [details] [review] patch
Looks fine to me. You certainly know better than me what cairo expects...
2008-06-16 Behdad Esfahbod <behdad@gnome.org> Bug 538182 – pango_cairo_context_update_layout is not noop after gtk_widget_create_pango_layout * gtk/gtksettings.c (settings_update_font_options): Make sure all font option fields are set to non-DEFAULT values.
I would like to know a bit more details about why it is necessary to have non-DEFAULT default values. I recently filed bug 735316 which sets them back to _DEFAULT (not knowing about this bug) due to font rendering issues on OS X. It looks like it's working fine, but I guess I'm missing something about the implications of settings things to _DEFAULT. What would be the correct way to get system configured rendering working for OS X?
It is extremely unlikely that behdad is going to see your comment on an old, closed bug. Much better to find him on irc.
basically, my reading of the commit message is that the assumption is that the cairo DEFAULT value is just an alias for one of the other options - which seems to be not true for the OS X backend.
Well, I was assuming he would get notified by e-mail, but I'll try to catch him live on IRC then. The DEFAULT value means different things for different backends, usually it means GRAY, but on OS X it means system default (i.e. don't touch any settings). I guess the other solution would be to implement xft-rgba and xft-antialias for the quartz gdk screen settings.