-
Notifications
You must be signed in to change notification settings - Fork 106
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
Fonts are not vertically centered #11
Comments
As a workaround one can put a |
Unfort. this is not the final solution. The characters/symbols are bottom aligned inside the font and it seems there is no possibility to vertically center the symbols inside the font ... |
Sorry, just closed the other issue: #13 I see here you've already tried using Do you mind having another try with Add a very high value (e.g. 1000) just to see if it has any effect - works fine for me, and if still ineffective let me know and we'll debug this a little more? |
1000? I only used values around 10 or so ... Now I see why it did not work. Anyhow I have solved my issue using frames. |
same problem here... instead with same icons icon-font-generator works ok |
Fixes the issue. |
ok, normalize true is mandatory if you have one icon some pixel bigger then others. thanks |
I've got the same issue but with this config everything seems to work well: {
normalize: true,
fontHeight: 300,
descent: 150
} |
Issue is because of
|
@kovacevjosip that does work. did you do anything to automate this or do you modify the css by hand? |
You just need to copy code above somewhere inside your project (like |
Bit hacky, but I just made every icon an inline-flex and centered items and content... 😅 |
Whatever I do I cannot get the font icon vertically centered:

I've already tried using the --descent option but with no effect. SVG files look correct. Also changing the CSS properties has no effect, so I am starting to believe that it is really inside the generated font.
Can I do something about it?
thx
The text was updated successfully, but these errors were encountered: