This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

font-face , font-family 404

This is for discussion, mainly on 1.x but there's some 2.x topics here too.

font-face , font-family 404

by kironet » Sun Feb 01, 2015 3:00 pm

Hey,

I have css files with this piece of code:
Code: Select all
@font-face {
  font-family: 'social-icons';
  src: url("../../fonts/social-icons.eot?28036741");
  src: url("../../fonts/social-icons.eot?28036741#iefix") format('embedded-opentype'), url("../../fonts/social-icons.woff?28036741") format('woff'), url("../../fonts/social-icons.ttf?28036741") format('truetype'), url("../../fonts/social-icons.svg?28036741#social-icons") format('svg');
  font-weight: normal;
  font-style: normal;
}


The peoblem is that the symfony don't see the fonts folder.

web -> bundles -> public -> fonts

This is working ok:

Code: Select all
{% stylesheets
'bundles/public/css/buttons/buttons.css'
'bundles/public/css/buttons/social-icons.css'
'bundles/public/css/font-awesome.min.css'
filter='?yui_css' %}
<link rel='stylesheet' href="{{ asset_url }}">
{% endstylesheets %}


I using Windows and deploy project to linux web hosting. Hosting doesn't support symlink.

Can you help me please?

Thanks :)
kironet
Junior Member
 
Posts: 2
Joined: Sun Feb 01, 2015 2:49 pm