Closed ekdahl closed 5 months ago
The underline is just plain CSS. I can't reproduce the problem on my own either.
Please provide more information: ❓ Does this error only appear with the latest version of the module? ❓ Does it work with a different module version? ❓ Which browser do you use? ❓ Does it work correctly in another browser?
Module version Version 2.3.0 not compatible with my webtrees version. Version 2.4.0, here I see the odd lines. I'm sure it did not happen in some earlier version, since I have exported SVG files and printed so large that it would have been obvious.
webtrees Using version 2.1.4 of webtrees (but used previous version when reporting the issue)
Browser Same behavior in Chrome and Edge. Chrome version 101.0.4951.67 Edge version 101.0.1210.53
Sample site https://webtrees.ddns.net/tree/Ekdahl-Klahr/webtrees-fan-chart/1 Can be seen more clearly after zooming in.
This seems to be a bug in Chrome and therefore also in Edge since both are based on Chromium: https://stackoverflow.com/questions/21608754/svg-text-alignment-issues-with-a-curved-textpath
In Firefox, the rendering is fine (see image below), without any issues to me. I can't find any combination of text-rendering and font-family which always results in a proper rendering in chrome. There is always some glutch.
text-rendering: auto seems the most promising in chrome but its also not perfect:
I created an issue: https://bugs.chromium.org/p/chromium/issues/detail?id=1407504
It has been fixed in Chrome v124. Now the underlines look nice and smooth here too.
See image below. Using version 5ee7605 (latest commit as of now).