[librsvg] Handle font-style="normal"



commit 0559382e4d8fa17ce8acef081fbc5ce1afb6ad02
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Aug 4 10:41:56 2015 -0400

    Handle font-style="normal"
    
    Accept font-style="normal" ignored as an attribute of a tspan,
    https://bugzilla.gnome.org/show_bug.cgi?id=688689

 rsvg-css.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/rsvg-css.c b/rsvg-css.c
index 3ffbaa2..a7cd199 100644
--- a/rsvg-css.c
+++ b/rsvg-css.c
@@ -519,7 +519,9 @@ rsvg_css_parse_font_style (const char *str, gboolean * inherit)
             return PANGO_STYLE_OBLIQUE;
         if (!strcmp (str, "italic"))
             return PANGO_STYLE_ITALIC;
-        else if (!strcmp (str, "inherit")) {
+        if (!strcmp (str, "normal"))
+            return PANGO_STYLE_NORMAL;
+        if (!strcmp (str, "inherit")) {
             UNSETINHERIT ();
             return PANGO_STYLE_NORMAL;
         }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]