Closed alapanbagchi closed 1 year ago
@alapanbagchi If you convert to fonts, you can only use <path>
, many tags of svg cannot be used.
Hi, thanks for clearing that up
I managed to fix that issue by converting it into one long single <path>
which fixed the above mentioned issue. However I encountered a new problem.
So, here is the new svg
and this is the resulting font
As you can see it has lost its transparency. I dont know how to fix that Thanks
In fonts, fill-rule="evenodd"
for svg is also not supported.
That makes sense, thanks for your help
Hi @alapanbagchi, please try using SVGFixer to outline the icons before converting them to font. It worked like a charm in my case.
Hi @alapanbagchi, please try using SVGFixer to outline the icons before converting them to font. It worked like a charm in my case.
confirm it works!
await SVGFixer(resolve(process.cwd(), 'svg'), resolve(process.cwd(), 'tmp'), {
showProgressBar: true,
throwIfDestinationDoesNotExist: false,
}).fix();
I was trying to convert a bunch of svgs to font using this code but it has led to some weird results
Ths is the original svg used
This is the result obtained