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
Old 08-01-2011, 03:41 AM Font-Face trouble
NickH's Avatar
Extreme Talker

Posts: 155
Trades: 0
Hey Y'all

just having some trouble with using @font-face im using a font called caviar dreams and I've tried to make it work just for a bit of fun but it aint working in firefox :/ ive included some screencaps of whats going on and the code as well. it works in safari fine but yeah, not good in firefox

Safari


FF


CSS
Code:
@charset "UTF-8";
/* CSS Document */

@font-face { 
    font-family: CaviarDreams; 
    src: local('CaviarDreams');
    local ('CaviarDreams');
    src: url('/font/CaviarDreams.ttf');
    format:('truetype');
    font-weight:normal;
}

p
    {
        font-family:CaviarDreams;
        font-size:5em;
    }
__________________

Please login or register to view this content. Registration is FREE
NickH is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-01-2011, 01:26 PM Re: Font-Face trouble
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Try using Paul Irish's bulletproof @font-face syntax
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 08-02-2011, 08:27 AM Re: Font-Face trouble
NickH's Avatar
Extreme Talker

Posts: 155
Trades: 0
still broken :/

I only have the TTF of the font, would this have an impact with FF?
I copied the code from the bulletproof syntax but that didnt work for me, any other ideas?

here's the CSS

Code:
@charset "UTF-8";
/* CSS Document */

@font-face {
  font-family: 'CaviarDreams';
  src: url('/font/CaviarDreams.eot?') format('eot'), 
  url('/font/CaviarDreams.woff') format('woff'), 
  url('/font/CaviarDreams.ttf')  format('truetype');
}
/*
@font-face { 
    font-family: CaviarDreams; 
    src: local('CaviarDreams');
    local ('CaviarDreams');
    src: url('/font/CaviarDreams.ttf');
    format:('truetype');
    font-weight:normal;
}*/

p
    {
        font-family:CaviarDreams;
        font-size:5em;
    }
__________________

Please login or register to view this content. Registration is FREE
NickH is offline
Reply With Quote
View Public Profile
 
Old 08-02-2011, 08:56 AM Re: Font-Face trouble
NickH's Avatar
Extreme Talker

Posts: 155
Trades: 0
ive been looking around on the mozilla site and it seems to be an issue with them

https://developer.mozilla.org/en/CSS/@font-face

i tried using their example and it still came up in times new roman so it looks like i'll be developing in another browser for a while
__________________

Please login or register to view this content. Registration is FREE
NickH is offline
Reply With Quote
View Public Profile
 
Old 08-02-2011, 12:58 PM Re: Font-Face trouble
Physicsguy's Avatar
404 - Title not found

Posts: 919
Name: Scott Kaye
Location: Ontario
Trades: 0
Odd.

Could it be perhaps your Firefox has some setting set to always use a certain font for font-face? Is Firefox updated to at least 4+?

I know in IE you can set a custom fallback stylesheet. Maybe your Firefox is doing something similar. If all else fails, try installing the font into your operating system's font files, and then check if it works.
__________________
Check out my
Please login or register to view this content. Registration is FREE
or my
Please login or register to view this content. Registration is FREE
!
Physicsguy is offline
Reply With Quote
View Public Profile
 
Old 08-02-2011, 04:16 PM Re: Font-Face trouble
Novice Talker

Posts: 12
Trades: 0
Use fontsquirrel.com/fontface/generator to generate the correct font-face css.
rahmancbe is offline
Reply With Quote
View Public Profile
 
Old 08-02-2011, 10:14 PM Re: Font-Face trouble
NickH's Avatar
Extreme Talker

Posts: 155
Trades: 0
Quote:
Originally Posted by Physicsguy View Post
Odd.

Could it be perhaps your Firefox has some setting set to always use a certain font for font-face? Is Firefox updated to at least 4+?

I know in IE you can set a custom fallback stylesheet. Maybe your Firefox is doing something similar. If all else fails, try installing the font into your operating system's font files, and then check if it works.
I'm using FF5 and I do have the font installed locally, I've been reading around the mozilla support site and it seems to be a problem with FF rather than any local development. Some people think that it works when the site is not being hosted locally but I am yet to try this
__________________

Please login or register to view this content. Registration is FREE
NickH is offline
Reply With Quote
View Public Profile
 
Old 08-03-2011, 09:33 AM Re: Font-Face trouble
NickH's Avatar
Extreme Talker

Posts: 155
Trades: 0
...and now its working
__________________

Please login or register to view this content. Registration is FREE
NickH is offline
Reply With Quote
View Public Profile
 
Old 08-03-2011, 03:26 PM Re: Font-Face trouble
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
What was the problem? Was it as simple as moving to a live server?
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 08-03-2011, 09:35 PM Re: Font-Face trouble
NickH's Avatar
Extreme Talker

Posts: 155
Trades: 0
nah apparently FF doesnt read TTF fonts which is why when i tried a different font it worked, i then used font squirrel to get eot and otf files of the font and now it works fine.

thanks for everyone's suggestions
__________________

Please login or register to view this content. Registration is FREE
NickH is offline
Reply With Quote
View Public Profile
 
Old 08-03-2011, 09:39 PM Re: Font-Face trouble
NickH's Avatar
Extreme Talker

Posts: 155
Trades: 0
see the page here

(yes i know some of the images are stretched)
__________________

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

Last edited by NickH; 08-03-2011 at 09:44 PM..
NickH is offline
Reply With Quote
View Public Profile
 
Old 08-04-2011, 12:22 PM Re: Font-Face trouble
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Thanks Nick. Good to know.

Hey some of your images are stretched. Sorry, couldn't resist. Looks like the font is working.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 08-08-2011, 03:55 AM Re: Font-Face trouble
Super Spam Talker

Posts: 878
Name: Paul W
Trades: 0
Why would you want to use a font that most of your visitors won't have on their computers?
__________________

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


*** New:
Please login or register to view this content. Registration is FREE
PaulW is offline
Reply With Quote
View Public Profile
 
Old 08-08-2011, 07:57 AM Re: Font-Face trouble
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 9,007
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
Done correctly, with this method visitors don't have to have the typeface on their computers for it to display.

tim
__________________
SEO "experts" smell like Big Fish_|_
Please login or register to view this content. Registration is FREE


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

serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Old 08-08-2011, 02:02 PM Re: Font-Face trouble
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Exactly the idea is you're referencing a font file online that gets downloaded to the visitors browser.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 08-08-2011, 08:21 PM Re: Font-Face trouble
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 9,007
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
I'm surprised the method has not been used earlier, since individual fonts are pretty lightweight files.

tim
__________________
SEO "experts" smell like Big Fish_|_
Please login or register to view this content. Registration is FREE


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

serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Old 08-09-2011, 03:46 PM Re: Font-Face trouble
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Part of the problem was the technology wasn't as capable and part was the typeface designers prefer not to see their hard work freely distributed since they do sell fonts for a living.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 08-10-2011, 10:30 PM Re: Font-Face trouble
NickH's Avatar
Extreme Talker

Posts: 155
Trades: 0
hey team, so its working on FF5 and Safari (whatever version apple has updated me to) on my macbook running osx 10.5.8 but when I try to view the site (http://www.test.nickphayden.com) on other computers (at TAFE/Uni/Home so far) its giving me the browsers default fonts, I'm going in today to check what version of FF and IE they are running but if they're running FF5 (I think they are) then why wouldn't it be working there?

can some of you guys just check out the link and let me know what you guys see
__________________

Please login or register to view this content. Registration is FREE
NickH is offline
Reply With Quote
View Public Profile
 
Old 08-10-2011, 11:29 PM Re: Font-Face trouble
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 9,007
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
The default font is showing up in FF5, Opera 10, and Safari 4 for windows (well, and IE7, but that's a given). And your email and FB links are hovering over your footer text. Oh, and some of your images are stretched (duck).

tim
__________________
SEO "experts" smell like Big Fish_|_
Please login or register to view this content. Registration is FREE


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

serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Old 08-10-2011, 11:41 PM Re: Font-Face trouble
NickH's Avatar
Extreme Talker

Posts: 155
Trades: 0
so at TAFE they're using FF 3.6 and I'm getting the default font :/
does anyone know about the support for font-face in 3.6? I had a quick google and it mostly said that they were moving to support WOFF.

with the other issues would using a CSS reset (and recoding) fix the issue?
__________________

Please login or register to view this content. Registration is FREE
NickH is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Font-Face trouble
 

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 3.44653 seconds with 12 queries