-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
glyphs in font are aligned below baseline #170
Comments
In the modified test page example, the top of the glyphs are vertically aligned with the bottom of the i. This is due to the negative y scale you apply on each svg path in const verticalTransformedPath = SVGPath(icon.path)
.scale(50, -50)
.round(6)
.toString(); If you change to const verticalTransformedPath = SVGPath(icon.path)
.translate(0, -24)
.scale(50, -50)
.round(6)
.toString(); the bottom of the glyphs are aligned with the bottom of i. |
Great, thanks so much for investigate it 🙏 Would you mind to open a PR to fix it? If you can't or don't have time, I'll try to fix it as soon as I can. |
The new version has been released with the change. Could you confirm that this problem is fixed @eburghar? |
Yes it is working. Thanks for the merge ! |
Kind of issue
Description
When using the font in LaTeX, the top of the glyphs are aligned below the baseline. (See ineshbose/simple-icons-latex#2)
This is also confirmed in the browser. Just use the following
preview/html/testpage.pug
The text was updated successfully, but these errors were encountered: