Extracting SVG from Font Awesome

前端 未结 8 675
伪装坚强ぢ
伪装坚强ぢ 2020-11-28 22:37

I want to get the SVG path data from Font Awesome glyphs so that I can use them straight up as SVG in my HTML. I thought it would be as easy as copy-pasting the path data fr

8条回答
  •  野性不改
    2020-11-28 23:16

    Use fontforge script. There is a script I found online here:

    fontforge -lang=ff -c 'Open($1); SelectWorthOutputting(); foreach Export("svg"); endloop;' font.ttf 
    

    See: http://fontforge.sourceforge.net/scripting.html

提交回复
热议问题