Page 2 of 2

Re: Custom font for menu?

Posted: Wed Aug 11, 2010 7:02 pm
by uniqu3
Actually i this would of been better solution:
@font-face {
  font-family: 'EqualityItalic';
  src: url([[root_url]]/uploads/images/equality-bookitalic-webfont.eot);
  src: local('EqualityItalic'), local('Equality-BookItalic'), url([[root_url]]/uploads/images/equality-bookitalic-webfont.woff) format('woff'), url([[root_url]]/uploads/images/equality-bookitalic-webfont.ttf) format('truetype');
url('([[root_url]]/uploads/images/equality-bookitalic-webfont.svg#webfontJjeaD3Kn') format('svg');
  font-weight: normal;
  font-style: normal;
}

Re: Custom font for menu?

Posted: Wed Dec 15, 2010 12:41 am
by mox
Yeah!
I can finally leave the buggy TTT!!!
Thanks to all of this thread.

The problem of the url path in the css, is determined by the uktra buggy {cms_stylesheet} tag.
This tag have many bug in how it serve path, mostly in conjunction with https.
Anyway, if you use the old {stylesheet} tag, the path in your css can return normal, like this:
url(uploads/fonts/blabla.ttf)

Ciao
Maurizio

Re: Custom font for menu?

Posted: Wed Mar 07, 2012 9:56 am
by Brzezi
Hi,

I've used @font-face on my site but there's another problem besides only adding it to your css.

When you enter to your site using address with "www." (eg. 'www.mysite.com') css loads fonts and everything is all right but when you try to do "this" using adress whitout "www." (eg. 'mysite.com') it doesn't load them.

Everything becouse of [[root_url]]!

Could someone help me how to fix this.
Maybe you could give me a link to a topic which explains how to set multiple [[root_url]] ?