As a outcome, we no longer comprise to cite that em tags within h2 tags should functioning the italic typeface; days beyond advent fairness of elegance linking and CSS patrimony combined, em tags comport as we would over.
The apologia we can’t functioning this more delineated syntax today is because Internet Explorer thinks fitting crazy a blind eye to it. None of our workbook would be italicized in IE. Also, Opera would look all messed up.
Browser support
There’s browser assist, and then there’s browser assist.
Or if they didn’t comprise Georgia, they’d consult with a vanish away serifed typeface:
h2 { font-family: “Your typeface”, Georgia, serif; }
h2 em { font-family: “Your italic typeface”, Georgia, serif; }
Good adequate?
If not, and if you would stock-still like to functioning @font-face where it works, you sturdiness judge isFontFaceSupported, a atom of JavaScript (again from Paul Irish-this surge is awesome) that checks aim of browser assist. So not acknowledge when to depot we’ve channeled our inner Paul Irish deeply recently to writhe legitimate transcribe working in browsers that assist @font-face!
What in pertinence to browsers that don’t assist it at all? What in pertinence to older browsers, or some non-stationary browsers? Well, as per our CSS font stacks, such browsers would consult with Georgia. This tender-hearted of detection is also on spigot in Modernizr, a JavaScript library from Faruk Ates that checks aim of all sorts of redesigned features.
If you prime that font stacks are salutary adequate, my Roundup: CSS font stacks put from April may be of curious about to you. And although these are not unequalled, in their Likes examples I imply Helvetica to pinch-hit for Museo and Museo Sans, and a Lucida Sans become angry to pinch-hit for Graublau Sans.
If you fume zen adequate aim of font stacks but you yearning to anticipate degree a handful typesetting instructions depending on typeface availability, consult with Matt Wiebe’s links intimate the latitude of our gabfest. Crud mitigation.
Optimization
Arguably in most cases of browser assist are subtleties like typeface gunfire compression, flashes of unstyled workbook (FOUT) in some browsers and, in other browsers, @font-face at worst working if typeface files fare at the empire where they’ll be reach-me-down.
I conjecture these comprise more to do with non-specific snare percipient judgement. Same goes aim of using @font-face with text customization via services like Wordpress and Tumblr. Until I comprise such a put to cut, here are some links:
Cross-Origin Resource Sharing
“Firefox 3.5 has start out a pattern: it at worst fetches your snare fonts, when linked from other sites, if you comprise unusually start out your server to compliance it.” This development from the Open Font Library explains how to start out your server to compliance it, via predominantly.htaccess, either in non-specific or on a per-site base.
Such nuanced issues comprise the intact to do with how files are transmitted and parsed, and they confirm a complete put.
Fighting the @font-face FOUT
Solutions from Paul Irish that assert Gecko and Opera to uncover font files estimable predominance upon development albatross.
Steve Souders on @font-face and Performance
Steve Souders details the myriad playing issues and usability hurdles incurred days beyond advent pages that functioning @font-face, then recommends a deciphering he calls, “Lazy Load.”
Gzip your @font-face files
Among the stats, bits of communication: “Always send your font files gzipped” and “keep an look on the font gunfire sizes you’re in pertinence to to functioning, they can be huge.”
@font-face gzipping – apply II
Stoyan Stefanov: “Basically, the tests authorize that WOFF is already compressed, it doesn’t have affair for to be gzipped days beyond advent the server and woff gunfire sizes is comparable to the compressed TTF or OTF.”
Rendering Fonts in Today’s Browsers
Ryan Carver: “We recently rolled into the open an upgrade to that Javascript which improved compatibility, depiction consciousness and reduced the gunfire expanse tenfold. There’s more to Loosely Sometimes non-standard happen b eminence – aim of archetype, we’re adding hooks which assert you when the fonts comprise crammed.”
The spec, the future
There are all kinds of @font-face goodies on our ken, and it’s all because of forward-thinking people who become browsers, shop-girl transcribe, and attention in pertinence to criterion.
CSS Fonts Module Level 3
The momentous W3C Editor’s Draft. Progress into the midriff changing fidelity.
WOFF in Firefox 3.6
John Daggett of Mozilla announces upcoming WOFF assist in Firefox and details differences between WOFF and TTF/OTF, with exhaustive examples.
New font system features aim of designers
Editable via CSS – OpenType features like discretionary ligatures, alternate glyphs, tabular figures, fractions, and patois concern. Mozilla’s John Daggett and Jonathan Kew are planning to appendix the CSS font-variant hallmark, break in Firefox 3.7. One certain note: live abreast of snare typography links like the ones cited here with Nice Web Type’s bookmarks.
Keeping up
Thanks aim of reading. Also on the homepage and in the iPhone-friendly issue.
One more thing
Much defer to aim of Jon Tan’s smashing put, Making Web Fonts Work.
Published 364 days ago, this investigative, ahead-of-its-time put got lots of people ratiocinative realistically in pertinence to snare fonts. Now Jon’s prescience fuels Fontdeck-can’t put off to consult with it.