mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 23:10:22 +00:00
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:
parent
7c675b34c5
commit
370f0d1d86
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user