diff options
-rw-r--r-- | pluma/pluma-pango.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/pluma/pluma-pango.c b/pluma/pluma-pango.c index 26a84837..d236f67e 100644 --- a/pluma/pluma-pango.c +++ b/pluma/pluma-pango.c @@ -103,11 +103,7 @@ pluma_pango_font_description_to_css (const 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, "\""); - g_string_append (s, pango_font_description_get_family (desc)); - g_string_append (s, "\""); - g_string_append (s, "; "); + g_string_append_printf (s, "font-family: \"%s\"; ", pango_font_description_get_family (desc)); } if (set & PANGO_FONT_MASK_STYLE) { |