tancredi / fantasticon

Icon font generation tool
MIT License
931 stars 103 forks source link

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

Open abdullahcel1k opened 1 year ago

abdullahcel1k commented 1 year ago

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 1 year ago

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 commented 7 months ago

@anh4n thanks.

this should be documented somewhere.