Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Font Face Not Working!
Old 11-21-2010, 05:20 PM Font Face Not Working!
Junior Talker

Posts: 3
Name: James
Trades: 0
Hi,

I've never needed to ask on a forum before because I have always found the answer, but I really can't find anything on this.

I am using font face to use a non-standard font on my website (jameslane.co.uk) and it works fine offline, but since putting all the files online, it just won't work! Does anyone know why?
jameslane is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-21-2010, 05:28 PM Re: Font Face Not Working!
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,376
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
it just won't work! Does anyone know why?
Absolutely no idea at all!

Would you like to give us a clue, like a URI for instance?
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-21-2010, 05:40 PM Re: Font Face Not Working!
Junior Talker

Posts: 3
Name: James
Trades: 0
Sorry to be a noob, but what's a URI?

There isn't really much I can give! Here is the coding for the fontface:

"@font-face
{
font-family: lane;
src: url('LANE.eot');
src: local(my_font), url('LANE.ttf') format('opentype');
}"

I then link the stylesheet to whichever page I am using it for (the whole website really!)

Like I say, it's all working offline, i open the index file and it all looks normal, "http://jameslane.co.uk/Screenshot.png", but then when I have put all the files into my public_html folder online, in the same structure, because all the files are in the same folder, it doesn't work!

Oh and thanks for replying so quickly, I was looking around the site for any other problems similar.
jameslane is offline
Reply With Quote
View Public Profile
 
Old 11-21-2010, 05:50 PM Re: Font Face Not Working!
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,376
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
URI = Uniform Resource Identifier

Internet Address.

I'd suggest you check the case of the filenames
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-21-2010, 05:54 PM Re: Font Face Not Working!
Junior Talker

Posts: 3
Name: James
Trades: 0
Ah so clearly I can't have capitals in my filenames! PROBLEM SOLVED!

Cheers Chris, big help! Blackpool too, literally a stone's throw away! Thanks again!
jameslane is offline
Reply With Quote
View Public Profile
 
Old 11-21-2010, 06:07 PM Re: Font Face Not Working!
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,376
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
Ah so clearly I can't have capitals in my filenames
You can, however *nix OS is case sensitive, whereas Windows OS is not.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-22-2010, 03:43 AM Re: Font Face Not Working!
Banned

Posts: 408
Name: mushget
Trades: 0
if it works fine offline, it must be something wrong, check the filename or the filepath.
mushget is offline
Reply With Quote
View Public Profile Visit mushget's homepage!
 
Old 11-29-2010, 07:15 PM Re: Font Face Not Working!
kjp
Junior Talker

Posts: 3
Name: Kyle James-Patrick
Location: Leeds
Trades: 0
Hello everyone,

I've been reading this site for years and always find the answer to my question usually before I even know I need to ask it. But I'm having the worst experience trying to get font-face to work. It's for my university application so I'm just starting to freak out. I've read everywhere I can yet my code still doesn't work.

Site is here : www.kylejamespatrick.net

I'm trying to use the League Gothic font for my title. This is my code :

Code:
@font-face {  
  font-family: "League Gothic";  
  src: url(http://www.kylejamespatrick.net/wp-content/themes/Starkers/css/fonts/league_gothic.eot); /* IE */  
  src: local("League Gothic"), url(http://www.kylejamespatrick.net/wp-content/themes/Starkers/css/fonts/league_gothic.ttf) format("truetype"); /* non-IE */ 
}
Here is how I'm calling it :

Code:
.header { font-family:"League Gothic"; color:#FFF;}
I've followed so many guides, converted the fonts into various forms but it just won't work without having the font's installed locally... I'm using absolute URL's as my site seems to hate anything local.

Please help, I've even tried typeface.js and that still won't do anything.

Chrome likes it, but IE is shaking it's head at me. Haven't tried the rest as I've read IE is the first one to try and fix
kjp is offline
Reply With Quote
View Public Profile
 
Old 11-30-2010, 03:19 AM Re: Font Face Not Working!
Skilled Talker

Posts: 60
Name: Dmitry
Trades: 0
Try to exclude absolute path from font source url. Use relative path.
__________________
Sincerely, Dmitry

Please login or register to view this content. Registration is FREE
ElmanF is offline
Reply With Quote
View Public Profile Visit ElmanF's homepage!
 
Old 11-30-2010, 07:34 AM Re: Font Face Not Working!
kjp
Junior Talker

Posts: 3
Name: Kyle James-Patrick
Location: Leeds
Trades: 0
Just to the IE?

Code:
@font-face {  
  font-family: "League Gothic";  
  src: url(fonts/league_gothic.eot); /* IE */  
  src: local("League Gothic"), url(http://www.kylejamespatrick.net/wp-content/themes/Starkers/css/fonts/league_gothic.ttf) format("truetype"); /* non-IE */  
}
Still nothing with IE... what can you guys see?
www.kylejamespatrick.net

Last edited by kjp; 11-30-2010 at 07:34 AM.. Reason: typo fever
kjp is offline
Reply With Quote
View Public Profile
 
Old 11-30-2010, 07:58 AM Re: Font Face Not Working!
kjp
Junior Talker

Posts: 3
Name: Kyle James-Patrick
Location: Leeds
Trades: 0
No joy with that method.

Working in Chrome and Mozilla, but not IE... and IE is meant to be the one that supports this? My poor brain. Day 4 of font-face is miserable...
kjp is offline
Reply With Quote
View Public Profile
 
Old 11-30-2010, 08:57 AM Re: Font Face Not Working!
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Appears to be working just fine in IE7, so what version are YOU using?
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 12-04-2010, 01:36 AM Re: Font Face Not Working!
Banned

Posts: 143
Name: maheshadodis
Location: USA
Trades: 0
Hi,
I thinks css overrides your font face please check whether you have written twice for single class
maheshadodis is offline
Reply With Quote
View Public Profile
 
Old 12-18-2010, 02:21 AM Re: Font Face Not Working!
Douglife's Avatar
Extreme Talker

Posts: 218
Name: Douglas Montgomery
Location: Florida
Trades: 0
Many times you run into cross browser compatibility issues, such as the ones you have now. I personally have switched to a Javascript called "Cufon".

It can be a little lagging on page load if you're using Cufon for every bit of text on the page, but for headers and tag lines, it works marvels.

Check it out here:

https://github.com/sorccu/cufon/wiki/About

And obtain it here:

http://cufon.shoqolate.com/

Good luck!
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Douglife is offline
Reply With Quote
View Public Profile Visit Douglife's homepage!
 
Old 12-20-2010, 03:45 AM Re: Font Face Not Working!
Novice Talker

Posts: 8
Name: PRICIYANA EDISON
Trades: 0
I think you should write the code again. Try this one


@font-face {

font-family: 'Graublau Web';
src: url('GraublauWeb.eot');
src: local('?'),
url('GraublauWeb.woff') format('woff'), url('GraublauWeb.ttf') format('truetype');
}
imhsar is offline
Reply With Quote
View Public Profile Visit imhsar's homepage!
 
Reply     « Reply to Font Face Not Working!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.96361 seconds with 12 queries