Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-7808

Wrong font for text node when "class" and "text-anchor" is used.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 4.6.0, 4.6.1
    • SVG Support
    • 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.

      Attachments

        1. example.png
          example.png
          5 kB
        2. example.svg
          0.9 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            behto Torsten Behnke
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes