https://bugs.kde.org/show_bug.cgi?id=466130

            Bug ID: 466130
           Summary: Strange behavior of the text-decoration after new text
                    changes
    Classification: Applications
           Product: krita
           Version: git master (please specify the git hash!)
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Tool/Text
          Assignee: krita-bugs-n...@kde.org
          Reporter: gin...@gmail.com
  Target Milestone: ---

SUMMARY
It seems to be a bug on the rendering of the "text-decoration" property. I
think there are two issues involved:
* First, if the property is set to any value, the line is rendered as it is
specified, even the wavy and dashed ones, but it seems too thin, like 1px
thick. I would expect it to have a thickness proportional to the font size. The
thickness property seems to not work, so I don't know if any of that is
expected.
* Second, if I then remove the property, instead of the line disappearing, a
new, thicker line appears. It is not like a rectangular glitch. If the style is
"wavy", for example, the line has that shape with bigger waves (actually closer
to what I would expect the thickness to be when the property is activated).
Also, if I then change the font size to a smaller size, the line seems to
remain unchanged and extend outside the bounding box. Again, all of this
happens when the property is deleted. If the property is set, then the line
seems to update right. When this line extends outside the bounding box, some
traces of that outside portion ar left on the canvas if I move the box.

STEPS TO REPRODUCE
1. Create a text box and open the edit dialog.
2. In the svg tab add, the "text-decoration: underline" (or a valid value other
than underline) to the "style" attribute.
3. Delete the property.
4. (For the outside of bounding box unwanted traces) Set the font size to a
smaller size and move the box.

OBSERVED RESULT
The line decoration does not disappear when the "text-decoration" property is
removed.
There are some traces if the line extends outside the bounding box of the text.
Sample video of the issue: https://www.youtube.com/watch?v=B_6jWV6rimY

EXPECTED RESULT
The line decoration disappears when the "text-decoration" property is removed,
and because of that there are no possible unwanted traces outside the bounding
box.

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.102.0
System Qt Version: 5.15.8
Krita: Version: 5.2.0-prealpha (git 522c48f)
Krita Qt:  Version (compiled): 5.15.7,  Version (loaded): 5.15.7

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to