Closed nzbart closed 10 years ago
That's not font, that's simple svg image. Of cause, it can't be converted.
svg2ttf requires valid svg font on input.
I was mislead by the description of this project, which says
svg2ttf converts SVG graphics to TTF format.
Now that I have read your feedback and re-read the Readme, the only clue that would suggest to me that the "SVG graphics" must actually be an "SVG font" is the name of the svgFontString
variable in the API.
Yes, description is not enouth good.
This got me too
Thanks for reminder. I've updated description & improved error message. If you need generator from icons - try to search "dependens" of this project on npm https://www.npmjs.com/package/svg2ttf
I have an svg that renders correctly in Inkscape, but causes svg2ttf to throw the following exception:
There is no
font
element in the svg, which is below:Is it valid to have the missing
font
element, and should svg2ttf cater for this scenario?