Disable font fallback in the fontchooser preview

The preview is should show the selected font, not whatever
font contains glyphs for the preview text.
This commit is contained in:
Christian Persch 2011-09-23 00:32:44 +02:00
parent 7c675b34c5
commit 370f0d1d86

View File

@ -834,6 +834,10 @@ gtk_font_chooser_widget_get_preview_attributes (GtkFontChooserWidget *font
pango_attr_list_insert (attrs, attribute);
}
attribute = pango_attr_fallback_new (FALSE);
attribute->start_index = first_line_len;
pango_attr_list_insert (attrs, attribute);
attribute = pango_attr_size_new_absolute (gtk_font_chooser_widget_get_preview_text_height (fontchooser));
attribute->start_index = first_line_len;
pango_attr_list_insert (attrs, attribute);