I can't figure out how to enforce using of my custom font with JSF. I use Glassfish 4. My filesystem looks like this:
Where Basic.css style is applied to BasicTemplate.xhtml and this template is used in index.xhtml. Everything works fine, every change to the Basic.css file has effect, except for the custom font.
My CSS looks exactly like this:
@font-face{
font-family: 'Conv_Champagne_Limousines';
src: url('fonts/Champagne_Limousines.eot');
src: url('fonts/Champagne_Limousines.woff') format('woff'), url('fonts/Champagne_Limousines.ttf') format('truetype'), url('fonts/Champagne_Limousines.svg') format('svg');
font-weight: normal;
font-style: normal;
}
body{
font-family: 'Conv_Champagne_Limousines';
}
Things I've already tried:
Try this :
url('#{resource['fonts/...']}')
Instead of
url('fonts/...')