Another way to save the post-processing approach that would probably be easier than testing for something already up there would be to lower the top coordinate of the polygon of the white background by subtracting font-size. That would give you some new space on top for the text that should be free of anything else.
(Probably need slightly more than font-size, in case parts of some characters descend below the baseline).
Re:NPM Vulnerability Discussion on Twitter
by ColinWright on Thursday May 12, 2022 @05:22PM
(#31360267)
Something to experiment with ... I hope to have time in a few days.
Thanks.
So I need to test whether they will overlap, and suddenly it's a bag-o-nails. Or at the least, need to test if something is up there and not both including the extra, but that's ... inelegant.
The option of having an HTML template and including the SVG will work, and that's the one I'm probably going to go with. It needs tweaking.