| 
		
			
			
				
			
			
				 
			
			
				
			
		 | 
		
			
			
				 
			
				
			
		 | 
	||||
| 
				Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.  You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us.  | 
		
		
			
  | 	
	
	
		
		|||||||
| New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help. | 
| 
		 | 
	Thread Tools | 
| 
			
			 | 
		#1 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Dec 2012 
				
				
				
					Posts: 184
				 
				
				
				
				 | 
	
	
	
	
		
			
			 
				
				Embedded Web Fonts?
			 
			Hey guys.  I'm trying to figure out how to get this font to appear in the footer on my website.  I'm not really familiar with the @font-face thing - but I've been following the directions I've read as best as I can and can't seem to get it to work.   
		
	
		
		
		
		
			Code: 
	@font-face { font-family: bebas-neue; src: url('fonts/bebas-neue.eot'); /* For IE */ src: local('bebas-neue'), url('fonts/bebas-neue.ttf') format('truetype'); /* For non-IE */ }
Advice would be appreciated. Thanks! ~TT 
				__________________ 
		
		
		
		
	
	www.tittytweaker.com  | 
| 
		 | 
	
	
	
		
                 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Nov 2012 
				Location: New Orleans 
				
				
					Posts: 213
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 @font-face defines a new font family: 
		
	
		
		
		
		
			Code: 
	@font-face {
    font-family: "whatever";
    src: url('../fonts/whatever.ttf') format("truetype");
}
Once defined, it can be called through CSS like any other font: Code: 
	p {
    font-family: "whatever";
    font-size: 14px;
}
				__________________ 
		
		
		
		
	
	Tent Pitcher - Adult Search Engine  | 
| 
		 | 
	
	
	
		
                 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Dec 2012 
				
				
				
					Posts: 184
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Gah, I'm an idiot.  That's what I get for working on my site when I'm dead tired.  I think the font paths were incorrect. 
		
	
		
		
		
		
			Thanks! 
				__________________ 
		
		
		
		
	
	www.tittytweaker.com  | 
| 
		 | 
	
	
	
		
                 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Dec 2012 
				
				
				
					Posts: 184
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Any idea why it's not working in IE?  I know IE is terrible but I'd like it to still work in there too since it does in all the other browsers. 
		
	
		
		
		
		
			
				__________________ 
		
		
		
		
	
	www.tittytweaker.com  | 
| 
		 | 
	
	
	
		
                 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Nov 2012 
				Location: New Orleans 
				
				
					Posts: 213
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 What version of IE? 
		
	
		
		
		
		
			
				__________________ 
		
		
		
		
	
	Tent Pitcher - Adult Search Engine  | 
| 
		 | 
	
	
	
		
                 | 
| 
			
			 | 
		#6 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Dec 2012 
				
				
				
					Posts: 184
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Versions 8 and 9. 
		
	
		
		
		
		
			
				__________________ 
		
		
		
		
	
	www.tittytweaker.com  | 
| 
		 | 
	
	
	
		
                 | 
| 
			
			 | 
		#7 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Nov 2012 
				Location: New Orleans 
				
				
					Posts: 213
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Ok, just to recap, if you already have an EOT file along with your TTF, your CSS should look like this: 
		
	
		
		
		
		
			Code: 
	@font-face {
    font-family: "whatever";
    src: url('../fonts/whatever.ttf') format("truetype");
    src: url('../fonts/whatever.eot') format("truetype");
}
Code: 
	<!--[if IE]>@font-face {
    font-family: "whatever";
    src: url('../fonts/whatever.eot') format("truetype");
}
<![endif]-->
http://www.microsoft.com/typography/WEFT.mspx So make sure that you have the EOT and that it is in the right place and see if IE works properly then. 
				__________________ 
		
		
		
		
	
	Tent Pitcher - Adult Search Engine  | 
| 
		 | 
	
	
	
		
                 | 
| 
			
			 | 
		#8 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Dec 2012 
				
				
				
					Posts: 184
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 When I try the format you just posted, it still doesn't display in IE, and it breaks it in firefox. 
		
	
		
		
		
		
			When it works in FF, this is how I have it - Code: 
	@font-face
{
font-family: bebas-neue;
src: url('/fonts/bebas-neue.ttf'),
     url('/fonts/bebas-neue.eot'); /* IE9 */
}
I've seen so many different ways to format it on so many different sites and none of them have worked except that exact way. And even then, it only works in FF and Chrome. I'm not sure what I could be screwing up. 
				__________________ 
		
		
		
		
		
			
		
		
	
	www.tittytweaker.com  | 
| 
		 | 
	
	
	
		
                 | 
| 
			
			 | 
		#9 | 
| 
			
			
			
			 Registered User 
			
		
			
			
			Industry Role:  
				Join Date: Feb 2013 
				
				
				
					Posts: 38
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 If you don't exactly "get" @font-face property you can use little helpers 
		
	
		
		
		
		
		
	
	Google: "font squirrel" - Useful in cases where you have a random font that you have a version of on the desktop and are able to upload it. Font Squirrel converts your font into all 4 versions you need for different browsers. If you do not have a font in mind just goto "Google Fonts" its a webfont site where you can choose form thousands of fonts and it outputs the proper code for you to use the fonts on your site, you can choose to let google host it as well. Also they show Page Speed (Load Time) Impacts based on each font  | 
| 
		 | 
	
	
	
		
                 | 
| 
			
			 | 
		#10 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Dec 2012 
				
				
				
					Posts: 184
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Cool.  Took a little messing around but I managed to get it.  Thanks a million! 
		
	
		
		
		
		
			
				__________________ 
		
		
		
		
	
	www.tittytweaker.com  | 
| 
		 | 
	
	
	
		
                 |