Merge branch 'matthiasc/for-master' into 'master'

fontbutton: Quote font family names

See merge request GNOME/gtk!3534
This commit is contained in:
Matthias Clasen 2021-05-09 14:43:03 +00:00
commit fef9f1187d

View File

@ -1121,9 +1121,9 @@ pango_font_description_to_css (PangoFontDescription *desc,
set = pango_font_description_get_set_fields (desc);
if (set & PANGO_FONT_MASK_FAMILY)
{
g_string_append (s, "font-family: ");
g_string_append (s, "font-family: \"");
g_string_append (s, pango_font_description_get_family (desc));
g_string_append (s, "; ");
g_string_append (s, "\"; ");
}
if (set & PANGO_FONT_MASK_STYLE)
{