summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorliiulinsong <[email protected]>2023-05-25 17:16:41 +0800
committermouse <[email protected]>2023-05-28 10:54:49 +0800
commitdd41053c243739fc23aa31a1a2f02c3d13c43efb (patch)
tree6636b813db47a8da58dfb57417f2c5cf49e9cda5
parent33f39456bba463e280a3dbb811432d6ca443ef1d (diff)
downloadpluma-dd41053c243739fc23aa31a1a2f02c3d13c43efb.tar.bz2
pluma-dd41053c243739fc23aa31a1a2f02c3d13c43efb.tar.xz
Add quotes before and after font-family's value
-rw-r--r--pluma/pluma-pango.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pluma/pluma-pango.c b/pluma/pluma-pango.c
index 91dc686d..26a84837 100644
--- a/pluma/pluma-pango.c
+++ b/pluma/pluma-pango.c
@@ -104,7 +104,9 @@ pluma_pango_font_description_to_css (const PangoFontDescription *desc)
if (set & PANGO_FONT_MASK_FAMILY)
{
g_string_append (s, "font-family: ");
+ g_string_append (s, "\"");
g_string_append (s, pango_font_description_get_family (desc));
+ g_string_append (s, "\"");
g_string_append (s, "; ");
}
if (set & PANGO_FONT_MASK_STYLE)