Skip to content

Commit 2e8d89d

Browse files
committed
Updated README
1 parent a07ecf1 commit 2e8d89d

File tree

2 files changed

+62
-44
lines changed

2 files changed

+62
-44
lines changed

README.md

Lines changed: 61 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,34 @@
11
# Icon Font to PNG
2-
[![Build Status](https://img.shields.io/travis/Pythonity/icon-font-to-png.svg)](https://travis-ci.org/Pythonity/icon-font-to-png)
3-
[![PyPI Version](https://img.shields.io/pypi/v/icon_font_to_png.svg)][Project PyPI]
4-
[![PyPI Downloads](https://img.shields.io/pypi/dm/icon_font_to_png.svg)][Project PyPI]
5-
[![Python Versions](https://img.shields.io/pypi/pyversions/icon_font_to_png.svg)][Project PyPI]
6-
[![License](https://img.shields.io/github/license/Pythonity/icon-font-to-png.svg)](https://github.com/Pythonity/icon-font-to-png/blob/master/LICENSE)
2+
[![Build Status](https://img.shields.io/travis/Pythonity/icon-font-to-png.svg)][if2p travis]
3+
[![PyPI Version](https://img.shields.io/pypi/v/icon_font_to_png.svg)][if2p pypi]
4+
[![Python Versions](https://img.shields.io/pypi/pyversions/icon_font_to_png.svg)][if2p pypi]
5+
[![License](https://img.shields.io/github/license/Pythonity/icon-font-to-png.svg)][license]
76

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.
1211

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.
2014

2115
## 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].
2317

24-
With `pip` (recommended):
18+
With `PyPI` (recommended):
2519
```
2620
$ pip install icon_font_to_png
2721
```
2822

29-
Without `pip`:
23+
With `git clone`:
3024
```
3125
$ git clone https://github.com/Pythonity/icon-font-to-png
3226
$ pip install -r icon-font-to-png/requirements.txt
3327
$ cd icon-font-to-png/bin
3428
```
3529

3630
### 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:
3832
```
3933
$ pip install icon_font_to_png --ignore-installed six
4034
```
@@ -74,47 +68,70 @@ exporting icons:
7468
```
7569

7670
## 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+
```
7975

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+
```
8280

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+
```
8585

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+
```
8890

8991
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+
```
9195

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+
```
94100

95101
## API
96102
You can use `IconFont` (and `IconFontDownloader` for that matter)
97103
directly inside your Python project. There's no documentation as of now,
98104
but the code is commented and *should* be pretty straightforward to use.
99105

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.
101108

102109
## 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`).
104112

105-
To run tests yourself, just run `tox` inside repository.
113+
To run tests yourself run `tox` inside the repository.
106114

107115
## 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].
109117

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.
112120

113121
## 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

requirements/dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ flaky
44
tox
55
twine
66
pypandoc
7+
check-manifest
78
coverage

0 commit comments

Comments
 (0)