Skip to content

Commit 33dd4b3

Browse files
committed
Minor icon font downloader bugfix
1 parent 68f4957 commit 33dd4b3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ Export 'play' and 'stop' icons, size 64x64:
8686
Export all icons in blue:
8787
`$ icon-font-to-png --css font-awesome.css --ttf fontawesome-webfont.ttf --color blue ALL`
8888

89+
Export all icons in blue, but using it's hex value:
90+
`$ icon-font-to-png --css font-awesome.css --ttf fontawesome-webfont.ttf --color blue '#0000ff' ALL`
91+
8992
Or you can use `font-awesome-to-png`, without css and ttf arguments:
9093
`$ font-awesome-to-png ALL`
9194

icon_font_to_png/command_line.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,9 @@ def run(arguments):
155155
def download_icon_font(icon_font, directory):
156156
"""Download given (implemented) icon font into passed directory"""
157157
try:
158-
return AVAILABLE_ICON_FONTS[icon_font]['downloader'](directory)
158+
downloader = AVAILABLE_ICON_FONTS[icon_font]['downloader'](directory)
159+
downloader.download_files()
160+
return downloader
159161
except KeyError: # pragma: no cover
160162
raise Exception("We don't support downloading font '{name}'".format(
161163
name=icon_font)

0 commit comments

Comments
 (0)