|
1 | 1 | # Icon Font to PNG |
2 | | -[](https://travis-ci.org/Pythonity/icon-font-to-png) |
3 | | -[][Project PyPI] |
4 | | -[][Project PyPI] |
5 | | -[][Project PyPI] |
6 | | -[](https://github.com/Pythonity/icon-font-to-png/blob/master/LICENSE) |
| 2 | +[][if2p travis] |
| 3 | +[][if2p pypi] |
| 4 | +[][if2p pypi] |
| 5 | +[][license] |
7 | 6 |
|
8 | | -Python script (and library) for easy and simple export of icons from web icon |
9 | | -fonts (e.g. Font Awesome, Octicons) as PNG images. The best part is the |
10 | | -provided shell script, but you can also use it's functionality directly in |
11 | | -your (*probably awesome*) Python project. |
| 7 | +Python script (and library) for easy and simple export of icons from web |
| 8 | +icon fonts (e.g. Font Awesome, Octicons) as PNG images. The best part is |
| 9 | +the provided shell script, but you can also use it's functionality |
| 10 | +directly in your (*probably awesome*) Python project. |
12 | 11 |
|
13 | | -There's also `font-awesome-to-png` script for backwards compatibility with the |
14 | | -[first](https://github.com/odyniec/font-awesome-to-png) iteration of the concept. |
15 | | - |
16 | | -Package is considered to be in beta status and no backwards compatibility |
17 | | -(if you use it inside your project) between versions is guaranteed. |
18 | | - |
19 | | -Packages required for running and testing are listed in `requirements` directory. |
| 12 | +There's also `font-awesome-to-png` script for backwards compatibility |
| 13 | +with the [first][odyniec fa2p] iteration of the concept. |
20 | 14 |
|
21 | 15 | ## Installation |
22 | | -Make sure you have required packages for [Pillow installation](https://pillow.readthedocs.org/en/3.1.x/installation.html). |
| 16 | +Make sure you have required packages for [Pillow installation][pillow]. |
23 | 17 |
|
24 | | -With `pip` (recommended): |
| 18 | +With `PyPI` (recommended): |
25 | 19 | ``` |
26 | 20 | $ pip install icon_font_to_png |
27 | 21 | ``` |
28 | 22 |
|
29 | | -Without `pip`: |
| 23 | +With `git clone`: |
30 | 24 | ``` |
31 | 25 | $ git clone https://github.com/Pythonity/icon-font-to-png |
32 | 26 | $ pip install -r icon-font-to-png/requirements.txt |
33 | 27 | $ cd icon-font-to-png/bin |
34 | 28 | ``` |
35 | 29 |
|
36 | 30 | ### OS X |
37 | | -As reported [here](https://github.com/Pythonity/icon-font-to-png/issues/2#issuecomment-197068427), to install it on OS X: |
| 31 | +As reported [here][if2p osx], to install it on OS X: |
38 | 32 | ``` |
39 | 33 | $ pip install icon_font_to_png --ignore-installed six |
40 | 34 | ``` |
@@ -74,47 +68,70 @@ exporting icons: |
74 | 68 | ``` |
75 | 69 |
|
76 | 70 | ## Examples |
77 | | -Download latest Font Awesome: |
78 | | -`$ icon-font-to-png --download font-awesome` |
| 71 | +Download latest Font Awesome: |
| 72 | +``` |
| 73 | +$ icon-font-to-png --download font-awesome |
| 74 | +``` |
79 | 75 |
|
80 | | -List all available icons: |
81 | | -`$ icon-font-to-png --css font-awesome.css --ttf fontawesome-webfont.ttf --list` |
| 76 | +List all available icons: |
| 77 | +``` |
| 78 | +$ icon-font-to-png --css font-awesome.css --ttf fontawesome-webfont.ttf --list |
| 79 | +``` |
82 | 80 |
|
83 | | -Export 'play' and 'stop' icons, size 64x64: |
84 | | -`$ icon-font-to-png --css font-awesome.css --ttf fontawesome-webfont.ttf --size 64 play stop` |
| 81 | +Export 'play' and 'stop' icons, size 64x64: |
| 82 | +``` |
| 83 | +$ icon-font-to-png --css font-awesome.css --ttf fontawesome-webfont.ttf --size 64 play stop |
| 84 | +``` |
85 | 85 |
|
86 | | -Export all icons in blue: |
87 | | -`$ icon-font-to-png --css font-awesome.css --ttf fontawesome-webfont.ttf --color blue ALL` |
| 86 | +Export all icons in blue: |
| 87 | +``` |
| 88 | +$ icon-font-to-png --css font-awesome.css --ttf fontawesome-webfont.ttf --color blue ALL |
| 89 | +``` |
88 | 90 |
|
89 | 91 | 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` |
| 92 | +``` |
| 93 | +$ icon-font-to-png --css font-awesome.css --ttf fontawesome-webfont.ttf --color blue '#0000ff' ALL |
| 94 | +``` |
91 | 95 |
|
92 | | -Or you can use `font-awesome-to-png`, without css and ttf arguments: |
93 | | -`$ font-awesome-to-png ALL` |
| 96 | +Or you can use `font-awesome-to-png`, without css and ttf arguments: |
| 97 | +``` |
| 98 | +$ font-awesome-to-png ALL |
| 99 | +``` |
94 | 100 |
|
95 | 101 | ## API |
96 | 102 | You can use `IconFont` (and `IconFontDownloader` for that matter) |
97 | 103 | directly inside your Python project. There's no documentation as of now, |
98 | 104 | but the code is commented and *should* be pretty straightforward to use. |
99 | 105 |
|
100 | | -But feel free to ask [me](mailto:pawel.adamczak@sidnet.info) if anything is unclear. |
| 106 | +But feel free to ask [me](mailto:pawel.adamczak@sidnet.info) if anything |
| 107 | +is unclear. |
101 | 108 |
|
102 | 109 | ## Tests |
103 | | -Package was tested with `tox` on Python 2.7 and Python 3.4 (see `tox.ini`). |
| 110 | +Package was tested with `pytest` and `tox` on Python 2.7 and 3.4 |
| 111 | +(see `tox.ini`). |
104 | 112 |
|
105 | | -To run tests yourself, just run `tox` inside repository. |
| 113 | +To run tests yourself run `tox` inside the repository. |
106 | 114 |
|
107 | 115 | ## Contributions |
108 | | -Package source code is available at [GitHub](https://github.com/Pythonity/icon-font-to-png). |
| 116 | +Package source code is available at [GitHub][if2p github]. |
109 | 117 |
|
110 | | -Feel free to use, ask, fork, star, report bugs, fix them, suggest enhancements |
111 | | -and point out any mistakes. |
| 118 | +Feel free to use, ask, fork, star, report bugs, fix them, suggest |
| 119 | +enhancements and point out any mistakes. |
112 | 120 |
|
113 | 121 | ## Authors |
114 | | -Developed and maintained by [Pythonity](http://pythonity.com/). |
115 | | - |
116 | | -Original version by [Michał Wojciechowski](https://github.com/odyniec), |
117 | | -refactored by [Paweł Adamczak](https://github.com/pawelad). |
118 | | - |
119 | | - |
120 | | -[Project PyPI]: https://pypi.python.org/pypi/icon_font_to_png |
| 122 | +Developed and maintained by [Pythonity][pythonity]. |
| 123 | + |
| 124 | +Original version by [Michał Wojciechowski][odyniec], refactored by |
| 125 | +[Paweł Adamczak][pawelad]. |
| 126 | + |
| 127 | + |
| 128 | +[if2p travis]: https://travis-ci.org/Pythonity/icon-font-to-png |
| 129 | +[if2p pypi]: https://pypi.python.org/pypi/icon_font_to_png |
| 130 | +[license]: https://github.com/Pythonity/icon-font-to-png/blob/master/LICENSE |
| 131 | +[odyniec fa2p]: https://github.com/odyniec/font-awesome-to-png |
| 132 | +[pillow]: https://pillow.readthedocs.org/en/latest/installation.html |
| 133 | +[if2p osx]: https://github.com/Pythonity/icon-font-to-png/issues/2#issuecomment-197068427 |
| 134 | +[if2p github]: https://github.com/Pythonity/icon-font-to-png |
| 135 | +[pythonity]: http://pythonity.com/ |
| 136 | +[odyniec]: https://github.com/odyniec |
| 137 | +[pawelad]: https://github.com/pawelad |
0 commit comments