0

I am using bootstrap3 in my project. Now i want to use some font-icons besides with it's core icons. First I tried Font Awesome4, but it seems that there is some problem and icons are displaying like squares. also I tried FlatUI icons and the same problem appeared..

Does anyone have this trouble? How can I resolve it?


EDIT

for example for fontawesome I put the link below in my header

<link href="{{ asset('css/font-icon/css/font-awesome.min.css') }}" rel="stylesheet" />

I have also tried using cdn

<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">

I checked it with firebug, the fonts are loaded but it appears like some squares :| the square

firebug inspection

parisssss
  • 803
  • 16
  • 36

1 Answers1

0

I think I have found the solution, maybe dirty one..

I added this lines to my css:

[class*="fa-"]{
display: inline-block;
font-family: 'FontAwesome' !important;
font-style: normal;
font-weight: normal;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

and also these ones to my .htaccess

AddType application/vnd.ms-fontobject .eot
AddType font/ttf .ttf
AddType font/otf .otf
AddType application/x-font-woff .woff

<FilesMatch "\.(ttf|otf|eot)$">
    <IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "*"
</IfModule>

parisssss
  • 803
  • 16
  • 36