mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 14:00:09 +00:00
fontbutton: Quote font family names
Otherwise, spaces in family names will trip up the css parser.
This commit is contained in:
parent
a3f5283018
commit
e0ebf4e401
@ -1121,9 +1121,9 @@ pango_font_description_to_css (PangoFontDescription *desc,
|
|||||||
set = pango_font_description_get_set_fields (desc);
|
set = pango_font_description_get_set_fields (desc);
|
||||||
if (set & PANGO_FONT_MASK_FAMILY)
|
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, pango_font_description_get_family (desc));
|
||||||
g_string_append (s, "; ");
|
g_string_append (s, "\"; ");
|
||||||
}
|
}
|
||||||
if (set & PANGO_FONT_MASK_STYLE)
|
if (set & PANGO_FONT_MASK_STYLE)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user