Skip to content

Instantly share code, notes, and snippets.

@idan
Created October 14, 2012 22:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save idan/3890040 to your computer and use it in GitHub Desktop.
Save idan/3890040 to your computer and use it in GitHub Desktop.
Why Fonts.com Sucks

For reasons passing understanding, fonts.com has the most brain-dead approach to serving up webfonts, making each weight in a family its own family. On the face of things, that doesn't seem so bad, right?

Wrong.

Imagine that you're using two actually distinct families, say, Helvetica Neue and its lovely condensed cousin. For each family, you use two weights, plus maybe an italic cut. Now we have:

  • Helvetica Neue Light
  • Helvetica Neue Light Italic
  • Helvetica Neue Medium
  • Helvetica Neue Medium Italic
  • Helvetica Neue Condensed
  • Helvetica Neue Condensed Bold

Hunky dory, so far, right?

Now imagine that I'm building a website, and I like to keep my CSS very generic so I don't need to manually style the same thing in a ton of different places (read: Bad Idea.) For example, I like having code like:

body {
    font-family: "Helvetica Neue", sahs-serif;
    font-weight: 300;
}

strong {
   font-weight: 500;
}

em {
   font-variant: italic;
}

Sounds great, right? I can now use <strong>s and <em>s all over my markup and the browser will Do The Right Thing. Sadly this markup isn't possible with fonts.com.

No control over weights or italics

Each family I import is basically mistagged as having a weight of normal, or 400. That means that if I want to make something lighter or bolder, I have to remember to set a different @font-family instead of the appropriately semantic font-weight. Worse, if I'm using a normalize stylesheet, default user-agent styles will ask for heavier weights on some elements (h1) and italics on others (em). You know what happens when you ask a browser for bold or italics that it doesn't know it has? It renders them in faux-bold and italic.

That's right. Your browser basically feeds your type a lot of cookies until it gets morbidly obese, or it forcibly shears the text into an oblique slant, which looks about as good as it sounds.

The net effect is that you can't simply use an <em> or a <strong> anywhere you like. You have to know which actual font family you're using. Because each of the six font families above aren't actually related in CSS, it doesn't know that when I ask to bold some type that is set in Helvetica Condensed, it already has a bold weight, and it should use that one. If I tell it to use Helvetica's heavier weight for <strong>s, I have to remember to override that in every place that I use Helvetica Condensed. What a fucking pain.

Typekit gets this right

You ask for a family, you get the whole family under one font-family roof. Different weights are as CSS intended them: weights of the same family. Italic styles are font-variants of the same family. The browser can use this information to choose a decent font before butchering the one it has.

@talsafran
Copy link

Can you put up your @font-face declaration?

You can name fonts however you like and specify which weights / other styles they respond to.

@steve-taylor
Copy link

Typekit gets it right, but it doesn't have nice fonts like Neue Frutiger... yet. Apparently they did a deal back in September, but the new fonts are still nowhere to be seen and with no ETA.

@steve-taylor
Copy link

I just bit the bullet and upgraded my monthly subscription to annual. It's only $110/yr as opposed to $10/mo. Still more expensive than Typekit, but it has the fonts I want right now. If my site traffic goes nuts but doesn't bring in enough revenue, I can always just revert to a system font family.

@nathanpbell
Copy link

Found this page via Google search. Has this problem been mitigated now? Seems they support family grouping (optionally) now. http://www.fonts.com/support/faq/family-grouping

@silvenon
Copy link

Font grouping from Fonts.com is selectively buggy, they weren't able to fix my issue. So it's not possible to group them with @font-face?

@asha23
Copy link

asha23 commented Mar 21, 2017

Fonts.com is a general bugfest full stop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment