Membership is FREE, giving all registered users unlimited access to every Acorn Domains feature, resource, and tool! Optional membership upgrades unlock exclusive benefits like profile signatures with links, banner placements, appearances in the weekly newsletter, and much more - customized to your membership level!

@font-face

Status
Not open for further replies.
Joined
Jun 1, 2010
Posts
548
Reaction score
2
Is anyone using this regularly yet? I've tried it along with Google's webfonts API but neither work, I'm probably doing something wrong in the doctype.

Do you need to start with a HTML5 doctype to use @font-face?
 
Haven't used font-face before but have used Google fonts quite a bit which i'm sure is similar..

Not sure why you are having problems but hopefully this may help.

Using the Cabin font as an example, add this <link href='http://fonts.googleapis.com/css?family=Cabin&v1' rel='stylesheet' type='text/css'> inside the <head> area.

Then if you want to make it the font for the entire site in your css add this:

body {font-family:"Cabin";}

It can be added to any element, so if you want to change just the H1 tag replace:

h1 {
font-family: "Arial",Tahoma,Verdana;
color:#999;
}

With :

h1 {
font-family: "Cabin",Arial,Tahoma;
color:#999;
}

Any problems send me a PM...

Richard
 
Cheers Rich, I was using font: instead of font-family: what an idiot! Always the little things
 
hmm, font should have worked if it was ordered properly, font is just the short way of doing font-family, font-size, font-decoration in 1 line.
 
That's what I thought but no luck. It's the only style applied to <h1> so it can't be because of the order.
 
This google font looks like a nice easy to use tool

cheers for bringing it to my attention
 
works on an ipad?

Do google fonts work on an ipad / iphone yet?

I had to drop using them and switch to cufon a couple of months back as they made the browsers crash..
 
Does the Google Font API work on mobile devices?
The Google Font API works reliably on the vast majority of modern mobile operating systems, including Android 2.2+ and iOS 4.2+ (iPhone, iPad, iPod). Support for earlier iOS versions is limited.

mm
 
Status
Not open for further replies.

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Members online

No members online now.

Premium Members

New Threads

Domain Forum Friends

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators
General chit-chat
Help Users
  • No one is chatting at the moment.
      There are no messages in the current room.
      Top Bottom