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

Overall width of Text "IIIIIIIIIIII" in png of svg doesn't match Chrome desktop Version 69.0.3497.100 (Official Build) (64-bit) #49

Closed
simonwilbert opened this issue Oct 2, 2018 · 1 comment

Comments

@simonwilbert
Copy link

simonwilbert commented Oct 2, 2018

I'm struggling with an svg with a line of text in a roboto font taken more width in a png of an svg using this library compared to showing the svg within normal chrome desktop version. same issue on windows and mac.

<text class="_1601ee__text-static_noselect" id="Hy2vHgBtX-Roboto-text" letter-spacing="1" x="144.5" y="46.512" fill="black" fill-opacity="1" text-anchor="start" font-family="Roboto" font-size="60" font-weight="400" visibility="visible" style="opacity: 1; fill: rgb(0, 0, 0); fill-opacity: 1; stroke: rgb(0, 0, 0); stroke-width: 1;"><tspan id="Roboto-0">IIIIIIIIIIIIIIIIII</tspan></text>

any suggestions appreciated. i'm not using any clever svg attributes. i'm loading the correct font. i'm using a font weight which the font file states is correct.

@neocotic
Copy link
Owner

Sorry for the late respons but I'm not entirely sure what's going on. How are you loading the Roboto font in the SVG, a cleaner and more complete example of an SVG that can reproduce this problem would be helpful in debugging this issue.

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