Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
jaid shaik
Theme font-face issue
July 18, 2012 1:05 AM
Answer

jaid shaik

Rank: Regular Member

Posts: 170

Join Date: October 7, 2010

Recent Posts

Hi all,

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


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

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



Thanks
Jaid.shaik
David H Nebinger
RE: Theme font-face issue
July 18, 2012 5:25 AM
Answer

David H Nebinger

Community Moderator

Rank: Liferay Legend

Posts: 11295

Join Date: September 1, 2006

Recent Posts

Did you clear your cache in ie?
jaid shaik
RE: Theme font-face issue
July 18, 2012 5:51 AM
Answer

jaid shaik

Rank: Regular Member

Posts: 170

Join Date: October 7, 2010

Recent Posts

Yes i did....But no result....
Hitoshi Ozawa
RE: Theme font-face issue
July 20, 2012 8:48 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

Try surrounding with double quotes.

@font-face{
font-family: "Gotham Bold";
src: url("Gotham_Font/GOTHAM-BOLD.OTF");
}
jaid shaik
RE: Theme font-face issue
July 21, 2012 6:06 AM
Answer

jaid shaik

Rank: Regular Member

Posts: 170

Join Date: October 7, 2010

Recent Posts

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.....
Hitoshi Ozawa
RE: Theme font-face issue
July 21, 2012 8:01 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

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
RE: Theme font-face issue
December 4, 2013 8:28 PM
Answer

Richard Lee

Rank: Junior Member

Posts: 28

Join Date: January 18, 2011

Recent Posts

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