Pages

Monday, November 3, 2014

List fonts used by an SVG file

$ grep 'font-family:[^;]*' <input file.svg> | sed 's/.*font-family:\([^;]*\).*/\1/g' | sort | uniq

List all fonts used by an SVG file. Useful to find out which fonts you need to have installed in order to open/edit an SVG file appropriately.




commandlinefu.com


by David Winterbottom (codeinthehole.com)






from All commands http://ift.tt/1tUjLZC

No comments:

Post a Comment