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

Font overlaps when converting SVG to JPG/PNG #1300

Closed
kevn-m opened this issue Jun 11, 2024 · 2 comments
Closed

Font overlaps when converting SVG to JPG/PNG #1300

kevn-m opened this issue Jun 11, 2024 · 2 comments

Comments

@kevn-m
Copy link

kevn-m commented Jun 11, 2024

Hi there,

I am having some issues with fonts overlapping in the jpg/png output when converting from an SVG:

Source SVG (might need to download to see properly):
source-image

Output JPG:
output

Any ideas on what might be causing this?

@DarthSim
Copy link
Member

Hey @kevn-m!

The text in this SVG is split into spans with their own coordinated. To be aligned properly, they need the font used in the SVG to be available in the system. imgproxy only provides a single fallback font – DejaVu. You can put the needed fonts into the /usr/share/fonts dir inside the imgproxy image.

@kevn-m
Copy link
Author

kevn-m commented Jun 13, 2024

Thanks for the speedy response @DarthSim

Fantastic, this worked perfectly.

@kevn-m kevn-m closed this as completed Jun 13, 2024
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

2 participants