ImageMagick-6.3.5:

In "coders/svg.c" in the function "GetStyleTokens" style attributes are 
extracted with the function "StripStyleTokens",
this function does not strip the quotes of style attributes.

According to <http://www.w3.org/TR/REC-CSS2/fonts.html#value-def-family-name>
(referred by <http://www.w3.org/TR/SVG/text.html#FontFamilyProperty>)
> <family-name>
>     The name of a font family of choice. In the previous example, 
> "Baskerville", "Heisi Mincho W3", 
>     and "Symbol" are font families. Font family names containing whitespace 
> should be quoted.
>     If quoting is omitted, any whitespace characters before and after the 
> font name are ignored and any sequence 
>     of whitespace characters inside the font name is converted to a single 
> space.

style attributes may be quoted.

I think the function "StripString" in "magick/string.c" will do the correct 
extraction.


Cheers 
Thomas Stegemann

_______________________________________________
Magick-developers mailing list
Magick-developers@imagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick-developers

Reply via email to