From 7b9700a6e7cd59b45a0707b3225e0b45d5061cfc Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Tue, 19 Feb 2013 11:42:43 +0100 Subject: Small bug fix (fix format of font-family in some cases). (bzr r12133) --- src/libnrtype/font-lister.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libnrtype') diff --git a/src/libnrtype/font-lister.cpp b/src/libnrtype/font-lister.cpp index 91671f627..2c22ecff0 100644 --- a/src/libnrtype/font-lister.cpp +++ b/src/libnrtype/font-lister.cpp @@ -503,10 +503,10 @@ namespace Inkscape //std::cout << "FontLister:set_css: " << std::endl; - PangoFontDescription *desc = pango_font_description_from_string( current_fontspec.c_str() ); sp_repr_css_set_property (css, "-inkscape-font-specification", current_fontspec.c_str() ); - sp_repr_css_set_property (css, "font-family", pango_font_description_get_family( desc ) ); + sp_repr_css_set_property (css, "font-family", current_family.c_str() ); //Canonized w/ spaces + PangoFontDescription *desc = pango_font_description_from_string( current_fontspec.c_str() ); PangoWeight weight = pango_font_description_get_weight( desc ); switch ( weight ) { case PANGO_WEIGHT_THIN: -- cgit v1.2.3