diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2013-02-19 10:42:43 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2013-02-19 10:42:43 +0000 |
| commit | 7b9700a6e7cd59b45a0707b3225e0b45d5061cfc (patch) | |
| tree | 0c474cf64f00b0b0afbe985846cf6c8e174c6132 | |
| parent | Fix for 998276 : Keyboard shortcuts not appearing in the main menu under Unity (diff) | |
| download | inkscape-7b9700a6e7cd59b45a0707b3225e0b45d5061cfc.tar.gz inkscape-7b9700a6e7cd59b45a0707b3225e0b45d5061cfc.zip | |
Small bug fix (fix format of font-family in some cases).
(bzr r12133)
| -rw-r--r-- | src/libnrtype/font-lister.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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: |
