You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've found out that there is a regression of SVG text rendering in version 60.2. When I set text-anchor="middle", the bottom part of the text gets clipped. In the release notes for 60.2 there is a text-anchor related commit mentioned (1460522) , so maybe it's linked.
In the current version (61.2) it's not working properly.
Below HTML fragment and screenshots from versions 60.1 and 60.2.
The problem comes from the fact that the text-anchor code now has to clip the text, because of a translation. For that, it uses the text bounding box. But this bounding box is the logical bounding box, not the ink bounding box (see Pango documentation to learn more about this).
A dirty workaround would be to add some extra width/height.
I added this dirty workaround that should work in most common cases. Text support is in quite a bad shape for SVG, a real fix would require a lot of work…
Hi!
I've found out that there is a regression of SVG text rendering in version 60.2. When I set
text-anchor="middle"
, the bottom part of the text gets clipped. In the release notes for 60.2 there is a text-anchor related commit mentioned (1460522) , so maybe it's linked.In the current version (61.2) it's not working properly.
Below HTML fragment and screenshots from versions 60.1 and 60.2.
Version 60.1
Version 60.2
The text was updated successfully, but these errors were encountered: