Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
4.6.0, 4.6.1
-
None
Description
When a text node has a "class" attribute for style sheets and a "text-anchor" attribute for alignment, the style sheet doesn't work correctly (second text node in the example). Without the "text-anchor", the "class" works fine (first text node in the example). Replacing the "class" attribute with the "font-family" and the "font-size" works too (third text node in the example).
The problem seems to be that in "qsvghandler.cpp", the function "parseFont" is called twice, first with the "class" attribute and then again with the "text-anchor", overwriting the font information for the text node.