Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Text is using em instead of px #625

Open
megaroeny opened this issue Feb 5, 2025 · 0 comments
Open

[bug] Text is using em instead of px #625

megaroeny opened this issue Feb 5, 2025 · 0 comments

Comments

@megaroeny
Copy link

megaroeny commented Feb 5, 2025

This is related to highcharts/highcharts#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 megaroeny changed the title [bug] Text is using em instead of px [bug] Text is em's instead of px's Feb 5, 2025
@highsoft-asagh-bot highsoft-asagh-bot changed the title [bug] Text is em's instead of px's [bug] Text is using em instead of px Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant