Foros de discusión

Theme font-face issue

thumbnail
jaid shaik, modificado hace 11 años.

Theme font-face issue

Regular Member Mensajes: 171 Fecha de incorporación: 8/10/10 Mensajes recientes
Hi all,

In theme custom.css
@font-face{
font-family: Gotham Bold;
src: url(Gotham_Font/GOTHAM-BOLD.OTF);
}


I applied font like above. Its displaying in firefoxmozilla, chrome

But in IE "Gotham font " not effecting.....
any help regarding this....



Thanks
Jaid.shaik
thumbnail
David H Nebinger, modificado hace 11 años.

RE: Theme font-face issue

Liferay Legend Mensajes: 14919 Fecha de incorporación: 2/09/06 Mensajes recientes
Did you clear your cache in ie?
thumbnail
jaid shaik, modificado hace 11 años.

RE: Theme font-face issue

Regular Member Mensajes: 171 Fecha de incorporación: 8/10/10 Mensajes recientes
Yes i did....But no result....
thumbnail
Hitoshi Ozawa, modificado hace 11 años.

RE: Theme font-face issue

Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
Try surrounding with double quotes.

@font-face{
font-family: "Gotham Bold";
src: url("Gotham_Font/GOTHAM-BOLD.OTF");
}
thumbnail
jaid shaik, modificado hace 11 años.

RE: Theme font-face issue

Regular Member Mensajes: 171 Fecha de incorporación: 8/10/10 Mensajes recientes
Hi hitoshi,

I tried but no result....

So I gone with very close font I followed like this: font-family:"Gotham Book",Arial,Helvetica,sans-serif;

IE8,firefox,chrome....these browsers taking Gotham font... But IE9 browser taking this "Arial,Helvetica,sans-serif".


Thanks for reply.....
thumbnail
Hitoshi Ozawa, modificado hace 11 años.

RE: Theme font-face issue

Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
I may be because what you are trying to do is in violation of Gotham license. Should contact where you bought your Gotham font instead of here.

Simply said, this isn't a liferay issue but simplify a limitation that Gotham fonts do not show in IE9.
Richard Lee, modificado hace 10 años.

RE: Theme font-face issue

Junior Member Mensajes: 28 Fecha de incorporación: 19/01/11 Mensajes recientes
Hi old post i know... but thought I would point out this is just a pathing issue for anyone else coming across this thread

If your specifying url(Gotham_Font/GOTHAM-BOLD.OTF); this assumes the font file is within the same directory as custom.css i.e. /css/Gotham_Font/GOTHAM-BOLD.OTF