forked from AuroraMiddleware/gtk
Bug 538182 – pango_cairo_context_update_layout is not noop after
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. svn path=/trunk/; revision=20406
This commit is contained in:
parent
ff5ba96c26
commit
2a0358f6ce
@ -1,3 +1,11 @@
|
||||
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.
|
||||
|
||||
2008-06-16 Michael Natterer <mitch@imendio.com>
|
||||
|
||||
* gtk/gtkfontsel.c
|
||||
|
@ -1905,9 +1905,9 @@ settings_update_font_options (GtkSettings *settings)
|
||||
{
|
||||
gint hinting;
|
||||
gchar *hint_style_str;
|
||||
cairo_hint_style_t hint_style = CAIRO_HINT_STYLE_DEFAULT;
|
||||
cairo_hint_style_t hint_style = CAIRO_HINT_STYLE_NONE;
|
||||
gint antialias;
|
||||
cairo_antialias_t antialias_mode = CAIRO_ANTIALIAS_DEFAULT;
|
||||
cairo_antialias_t antialias_mode = CAIRO_ANTIALIAS_GRAY;
|
||||
gchar *rgba_str;
|
||||
cairo_subpixel_order_t subpixel_order = CAIRO_SUBPIXEL_ORDER_DEFAULT;
|
||||
cairo_font_options_t *options;
|
||||
@ -1920,6 +1920,8 @@ settings_update_font_options (GtkSettings *settings)
|
||||
NULL);
|
||||
|
||||
options = cairo_font_options_create ();
|
||||
|
||||
cairo_font_options_set_hint_metrics (options, CAIRO_HINT_METRICS_ON);
|
||||
|
||||
if (hinting >= 0 && !hinting)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user