Compare commits

...

1 Commits

Author SHA1 Message Date
Matthias Clasen
98145b1fcb fontchooser: Be more careful about fonts
When we show examples for OpenType features, we use
U+27F6 RIGHTWARDS ARROW, so we should make sure that the
fonts we use have some chance of covering that codepoint.
In the past, we implicitly relied on pangos fontconfig
backend always providing fontsets with 'infinite' coverage.
Other backends may not be so forgiving. Increase our
chances of avoiding hexboxes by appending the generic
sans-serif family at the end.
2022-01-02 09:57:52 -05:00

View File

@@ -1961,6 +1961,9 @@ update_feature_example (GtkFontChooserWidget *fontchooser,
desc = pango_font_description_copy (font_desc);
pango_font_description_unset_fields (desc, PANGO_FONT_MASK_SIZE);
str = g_strconcat (pango_font_description_get_family (desc), ",", "sans-serif", NULL);
pango_font_description_set_family (desc, str);
g_free (str);
pango_attr_list_insert (attrs, pango_attr_font_desc_new (desc));
pango_font_description_free (desc);
str = g_strconcat (item->name, " 0", NULL);