To convert an image from Font Awesome

Sep 9, 2014

Some of the images used on the XPUSH site is converted from font in the Font Awesome.

In this post, we will introduce to font awesome to png tool which was used by XPUSH team.

The font awesome to png source was developed in Python, using this method is very simple, not difficult also modified according to the purpose you want to use.

Based on the OS X environment, First, make sure Python is installed. (OSX is the Python installed by default.)

In the source of font awesome to png, You can make sure that it uses the image library. So PIL is required. PIL has devised an update since 2009, still a lot of people use it because it was made very well. However, since the Python version may no longer support while still rising, we will use the Pillow that provides the same functionality instead of PIL

Pillow can be installed without difficulty along the Official Site guide.

$ brew install libtiff libjpeg webp little-cms2
$ sudo pip install Pillow

When installation of Pillow is complete, you’ll extract the image from the font file into the font awesome to png.

Download the Font Awesome through the Font Awesome site. There is TTF files in unzipped folder named /font-awesome-XXX/fonts

Navigate to this folder and copy a file which is named to the folder. It can be converted to an icon in the form of a font image to the following instructions.

$ --size 280 facebook

comments powered by Disqus


announcement 3

Programming 2

Popular Tags

xpush fontawesome


XPUSH is an opensource realtime communication platform for quickly, easily adding scalable functionality to web and mobile environment.
It lets you develop faster, deploy easier and scale bigger.

Source Link

- Opensource Project from github

Code licensed under MIT License
Documentation licensed under CC BY 3.0