node-export-server icon indicating copy to clipboard operation
node-export-server copied to clipboard

[bug] Text is using em instead of px

Open megaroeny opened this issue 10 months ago • 0 comments

This is related to https://github.com/highcharts/highcharts/issues/22534


  1. I had a follow-up from the support team at Figma, which is where the issue was presenting itself (importing SVG charts and the text labels are extremely tiny). They said:

    After further investigation, it looks like the issue with the text you're seeing is due to the text within the SVG file being exported in em instead of px. Our engineering team is actively working on improving this import function to automatically convert em to px in the future.

    In the meantime, as a workaround, I’d recommend editing the exported SVG file before importing it and converting the em font sizes to px, or adjusting the font sizes manually after importing.

    Also, in case you didn't see it, it also repeats the text labels twice (on the same layer). Was that looked into as well?

  2. Related, the text labels repeat the characters twice, in the same layer. Here is an example (after I increased the size of the text labels):

Image

megaroeny avatar Feb 05 '25 14:02 megaroeny