diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2014-05-30 13:29:49 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2014-05-30 13:29:49 +0000 |
| commit | e5004cc2ccb6d6554125552b4ef0e0b4cb23daf0 (patch) | |
| tree | 8dbf4d54eb2e6c66d462653fd5e9a75855ef352f /src/style-internal.cpp | |
| parent | Use SPStyle value for 'font-family' rather than parse 'style' ourselves. (diff) | |
| download | inkscape-e5004cc2ccb6d6554125552b4ef0e0b4cb23daf0.tar.gz inkscape-e5004cc2ccb6d6554125552b4ef0e0b4cb23daf0.zip | |
Unquote names in 'font-family' lists. Partial fix for #1029080
(bzr r13402)
Diffstat (limited to 'src/style-internal.cpp')
| -rw-r--r-- | src/style-internal.cpp | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/style-internal.cpp b/src/style-internal.cpp index b15892128..8b4f3c1cd 100644 --- a/src/style-internal.cpp +++ b/src/style-internal.cpp @@ -648,9 +648,6 @@ SPIString::read( gchar const *str ) { if( !str ) return; - // libcroco puts quotes around some strings... remove - gchar *str_unquoted = attribute_unquote(str); - if (!strcmp(str, "inherit")) { set = true; inherit = true; @@ -658,10 +655,18 @@ SPIString::read( gchar const *str ) { } else { set = true; inherit = false; - value = g_strdup(str_unquoted); - } - g_free( str_unquoted ); + // libcroco puts quotes around some strings... remove + Glib::ustring str_unquoted(str); + css_unquote( str_unquoted ); + + // Unquote individual family names, Pango always uses unquoted names. + if( name.compare( "font-family" ) == 0 ) { + css_font_family_unquote( str_unquoted ); + } + + value = g_strdup(str_unquoted.c_str()); + } } |
