Daniel
Daniel

Reputation: 2531

grunt SVG to webfont

I'm trying to generate webfont from SVGs using grunt-webfont.

The issue is that I need this task to be valid on windows and linux machines. In order to achieve this I need to use the node engines that doesn’t work with some SVG files.

I would like to know if there is a way to convert my SVGs to a proper SVG format that will be supported by this grunt plugin or alternatively is there a better grunt plugin/s to achieve this

I would like to have a task that will be able to take my SVGs (created in illustrator) and output webfont files (.eot,.svg,.svg,...) and a css file (like icomoon export)

Thanks.

Upvotes: 1

Views: 1016

Answers (2)

tappily
tappily

Reputation: 11

Perhaps your artboard is too small. I recommend checking that you have a 512pt x 512pt artboard for each icon. I stumbled upon this gem (https://www.fourdigits.nl/blog/using-a-webfont-to-display-icons) when the grunt-webfont documentation left me alone in the forest.

Upvotes: 1

Artem Sapegin
Artem Sapegin

Reputation: 3122

All the docs says is that it might not work with some SVG files. You really should try to convert your files first and then ask what to do with the files that don’t work well.

Upvotes: 0

Related Questions