Neriderc / GVExport

Repository for GVExport module for Webtrees
GNU General Public License v2.0
15 stars 6 forks source link

Issue with display of preferred name (pre-release bug) #465

Closed Neriderc closed 7 months ago

Neriderc commented 8 months ago
          Using the merged code I see a problem similarly reported already in December testing d3-graphviz:

grafik This behaviour is observed when long text is to be displayed in a box and a nickname (underscored text) is followed by normal text. Official release works as expected: grafik

Originally posted by @schuco in https://github.com/Neriderc/GVExport/issues/268#issuecomment-1966196278

Neriderc commented 7 months ago

@schuco I have made a change that should fix this for you.

The root cause seems to be when the browser isn't picking up the right font. I've made some changes which should fix it for the default Arial font (which should be ok everywhere, I've tested Windows, Linux, and Android on Firefox. Interestingly, Chrome has a lot less issues, maybe they grab the font from the google server if it doesn't exist).

Unfortunately you may still find some fonts have an issue. We aren't able to tell which fonts are available, so can't hide the ones that will fail and cause an issue, but it does seem to be a lot better for me now.

Let me know if you're still having issues.

schuco commented 7 months ago

grafik

I am happy with that! Thank you