bdusell / webfont-generator

Locally convert fonts to web formats and generate CSS rules
MIT License
191 stars 35 forks source link

Read font id from svg file #7

Open bdusell opened 7 years ago

bdusell commented 7 years ago

Generating the CSS for an svg file requires knowing the id of the font element. Currently the value of the id is guessed from the name of the file, but this is not always correct. An XML parser could be used to read it from the svg file itself.