'how to use custom fonts and icons in codeigniter

Slam everyone i want to use custom icons from flaticon.com inside my view the icons in http://successpermis.com/css/flaticon.html as html it is working fine , but when i use it inside the view it is not working i think the problem in loading the font

    @font-face {
    font-family: "Flaticon";
    src: url("http://successpermis.com/css/flaticon.eot");
    src: url("http://successpermis.com/css/flaticon.eot#iefix") format("embedded-opentype"),
    url("http://successpermis.com/css/flaticon.woff") format("woff"),
    url("http://successpermis.com/css/flaticon.ttf") format("truetype"),
    url("http://successpermis.com/css/flaticon.svg") format("svg");
    font-weight: normal;
    font-style: normal;
}

i tried to load fonts from local folders then from online host just like the code above can you tell me to do it in a right way



Solution 1:[1]

  

@font-face {
    font-family: "Flaticon";
    src: url("http://successpermis.com/css/flaticon.eot");
    src: url("http://successpermis.com/css/flaticon.eot#iefix") format("embedded-opentype"),
    url("<?php echo base_url('assets/fonts/flaticon.woff')?>") format("woff"),
    url("<?php echo base_url('assets/fonts/flaticon.tff')?>") format("truetype"),
    url("<?php echo base_url('assets/fonts/flaticon.svg')?>") format("svg");
    font-weight: normal;
    font-style: normal;
}

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Toheeb Oyekola