Android material design Programming Blog

Free Icon fonts – FontAwesome, google font and ionicons

FontAwesome, google font and IonIcons are icon fonts you can use it on your website for free. FontAwesome contains a total of 605+ icons and googles material design icon contains a set of 900+ icons.

The beauty of icon fonts is you can change the color and size of icon through CSS property color and font-size respectively.

Advantages of using icon fonts over traditional image icon

  1. You can reduce the number of requests made to the server.
  2. As its size and colors are controlled from CSS so that customization is easy without any loss of quality.
  3. Looks great in smaller devices like mobile, tablet etc.

Disadvantages of icon fonts

  1. The only modern browser supports CSS icon fonts. If you want to target older browsers, then you have to find an alternate solution.
  2. To Display a single icon you have to wait for whole font sheet to load. In this case, the best practice is creating custom icons that are required by your website.

You can have icon fonts in any tag of your choice like div, anchor, span etc but, if you want to display iconic font in a single row then make sure you are using inline elements like i, span etc.

Font Awesome Icon Font

Inside head tag

<link rel="stylesheet" href="">

Inside body tag

<i class="fa fa-android" style="font-size:20px;color:#A4C639;"></i>  
<i class="fa fa-clock-o" style="font-size:32px;color:#d34836;"></i>



FontAwesome all icons

Google material design icon font

Inside head tag

<link href="" rel="stylesheet">

Inside body tag

<i class="material-icons">face</i>

google material design icon font all icons

Ionicons icon font

Inside head tag

<link rel="stylesheet" href="">

Inside body tag

<i class="ion-social-android"></i>

Ionicons all icons

Finally, the question is which one is best? Is there any advantages of using one over other?. The answer purely depends on your need and number of icons needed for your website. Choose one which smaller file size and make sure it contains all icons needed by you.

Leave a Reply

Your email address will not be published.


About | Policy | Disclaimer

Creative Commons LicenceUp ↑