Pythonity / icon-font-to-png

Python script (and library) for exporting icons from icon fonts (e.g. Font Awesome, Octicons) as PNG images
https://pythonity.github.io/icon-font-to-png/
MIT License
209 stars 34 forks source link

There is no ttf inside Octicons repository. #8

Closed fragrans closed 7 years ago

fragrans commented 7 years ago

Hi, How can I generate PNGs from Octicons, I didn't find any *.ttf inside the project.

Thanks, Fragrans

pawelad commented 7 years ago

You need to first download the CSS and TTF files va icon-font-to-png --download octicons command and then pass those files via --css and --ttf parameters, so something like:

$ icon-font-to-png --download octicons
$ icon-font-to-png --css octicons.css --tff octicons.ttf ALL

Let me know if you managed to get it working.

fragrans commented 7 years ago

It just works like charm. Thanks,

BTW, there is no executable within windows release (pypi). I have to run it with: > python icon-font-to-png ...

And I created a very simple batch file to simplify the command line, attached as zip file. icon-font-to-png.zip

pawelad commented 7 years ago

Glad I was able to help, and cool it's working on Windows - I never tested it there.