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

Generated icons have margin problem do you have any suggestions ? #458

Open
abdullahcel1k opened this issue Oct 23, 2022 · 2 comments
Open

Comments

@abdullahcel1k
Copy link

Hi, I was tried many svg icon converts with fantasticon but everytime has margin problem like this example:

Ekran Resmi 2022-10-23 23 02 15

You can see the bus is not at the center. How can I fix this problem?

@anh4n
Copy link

anh4n commented Jan 12, 2023

Try adding the following code into the .fantasticonrc. These options are then passed directly to svgicons2svgfont which has options for centering. For me it solved the problem.

formatOptions: {
    svg: {
        centerHorizontally: true,
        centerVertically: true
    }
}

@kerembaydogan
Copy link

@anh4n thanks.

this should be documented somewhere.

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

3 participants