tancredi/fantasticon

Generated icons have margin problem do you have any suggestions ?

abdullahcel1k opened this issue · 2 comments

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 commented

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
    }
}

@anh4n thanks.

this should be documented somewhere.