It’s time for a CSS3 @font-face browser support table. One that documents specifically how browsers act when either the whole font family is specified (regular, italic, bold, bold-italic & small-caps) or only the regular version of the font is specified. The test-case that this based on uses the ideal, easiest (laziest) implementation and can be found on its own page here.
Here’s the results of how current browsers render the test case, compared to the reference rendering.
Can the browser pick up the style natively?
|
Firefox 3.6 |
Safari 4 |
Chrome 5 |
Opera 10.5a |
| Regular (Normal) |
Yes |
Yes |
Yes |
Yes |
| Italic |
Yes |
Yes |
Yes |
Yes |
| Bold |
Yes |
Yes |
Yes |
Yes |
| Bold-Italic |
Yes |
Yes |
Yes |
Yes |
| Small-Caps |
Emulates |
Fallback system-font |
Fallback system-font |
Emulates |
| Extras? |
Ligatures! |
- |
- |
Ligatures! |
Can the browser emulate from the regular version?
|
Firefox 3.6 |
Safari 4 |
Chrome 5 |
Opera 10.5a |
| Regular (Normal) |
(implied) |
(implied) |
(implied) |
(implied) |
| Italic |
Yes |
Fallback to regular-style |
Fallback to regular-style |
Fallback to regular-style |
| Bold |
Yes |
Fallback to regular-style |
Fallback to regular-style |
Fallback to regular-style |
| Bold-Italic |
Yes |
Fallback to regular-style |
Fallback to regular-style |
Fallback to regular-style |
| Small-Caps |
Yes |
Fallback system-font |
Fallback system-font |
Yes |
| Extras? |
Ligatures! |
- |
- |
Ligatures! |
The most up to date support table, with pretty colours, can always be found on its own page alongside the test case. It also has more notes on ligature and small-caps support.
Why is falling back to regular style so bad?
It makes sentences full of expression look like sentences full of expression. Thus removing part of the typographical elements of a text, whereas @font-face is meant to embellish it typographically.
So what does this mean we should do?
Browser developers:
- Please work on emulating bold, italic, bold-italic, etc. when they’re not present. Browsers do this already when it comes to system-fonts, which means web developers expect this to work. Falling back to the regular style (font-style:normal) is horrible as you lose all styling in a text.
- Also give some thought to picking up “font-variant:small-caps;” in your @font-face code. It’s the only way to ensure proper fall-back. Emulating, like Firefox & Opera do, is a step forward, but it’d be a pity to stop there.
- If HTML 5 has taught us anything, it’s that browsers should be more bulletproof, not web designer’s code. Also: asking web developers to specify as little as possible is a better.
Web designers:
- Using @font-face when you only have the regular version of a font at your disposal is not a good idea. Especially for body text.
- If you use small-caps text, chances are visitors will see the fallback system-font. So make sure you specify a system-font that matches your @font-face font nicely when rendered as small-caps. (The test-case uses an especially jarring one on purpose.)
- Using a (less lazy, less practical) more bulletproof way of specifying your @font-face fonts is recommended (alas) for now.
20th of February 2010 • 3 Comments »
Hi Internet! Happy New Year! Here’s a list of the best weblogs on the internet in 2009:
- Kottke.org. Run expertly by Jason Kottke — live from New York — the blog links to new interesting things every hour of the day (except weekends). Sometimes the links have little accompanying notes, sometimes it’s just straight-up linkage when it’s clear enough.
The end. Stay tuned for a new list next year!
5th of January 2010 • Comments Off
Just a quick note to commemorate a design refresh of this site. Have been looking for ways to create seperate attention for main text and the sidebar. Can’t say I haven’t been inspired by Jon Hicks (and others) who has also just implemented a differing-colour-main-part-with-border on his site. Kept the main nav in the middle, to add ugliness give the design a quirky edge. If I have time to put the searchbar up top the nav may be able to move over to the left.
You’ll notice the logo is a lot smaller. What can I say? My cream ran out, plain and simple. I’m much happier with it, now it’s smaller. I’ve still to update the logos for the inspiration square.
The sidebar still suffers from mixed header styles headers have been updated too. Haven’t managed to add any other colours to the red & gold colour scheme yet though!
Make sure you visit my (on site!) Tumblr page. An upcoming post will describe how I managed to create internal links to the content there — the “latest interesting stuff” links in the sidebar are generated on the fly.
Of course, if you find any quirks, let me know.
5th of May 2009 • 3 Comments »
Good news! Google Chrome is getting full page zoom, and it’s the default! That only leaves Safari to implement it, as IE, Firefox & Opera have had it for a while now. [1]
Full page zoom is important because it means no more mucking about with elastic layouts (em-based) or liquid layouts (%-based). That just leaves fixed layouts (based on pixels), which is good because images, videos and other media are in pixels too!
Note: I’m not saying it’s good to use pixels for font-size: properties! (Just all the other properties, like height, width, margin, padding, etc.)
[1] Update: Safari 4 (beta) has implemented full page zoom too! All major and minor browsers have implemented full page zoom. Until widespread updating of Safari 3 with 4 and (more importantly) IE 6 with 7 or 8, approx. a quarter of visitors will only have text-based zoom available to them. IE 6 users are likely not to know anything about zoom-capabilities however.
12th of January 2009 • Comments Off
Second in a series of articles about tinkering with improving your WordPress installation, we return to custom 404 error pages; adding a list of possibly related posts when visitors have followed an outdated link. Other 404 error page improvements can be found in the first article of this series.
One of the most useful things on a 404 page is a direct link to the page visitors were trying to get to. Now we can’t read minds, but we do know the URI (explained in the third paragraph of the previous article) and that’s good enough. The following code is adapted from this archGFX article. The method used to transform the URI into a search query is very simple. If you would like a more advanced please refer to “A better 404 — Redux” at Urban Mainframe, where Jonathan Hollin expounds on his (downloadable!) 404 page code.
There are two parts to this “related posts” code. The first part makes it possible to get from “/wrong/link.html” (the URI) to “wrong link” (the search query). Read the rest…
8th of January 2009 • 3 Comments »
First in a series of articles about tinkering with improving your wordpress installation, today we tackle custom 404 error pages; the page everyone dreads getting when they’ve followed an outdated link.
Four-Oh-Fours are hot again! Just recently came a across the article A Better 404. I remember reading the A List Apart article “A Perfect 404″ ages ago, but had never done anything about it. Time to improve.
First some quick vocab: the part after your .com (or .co.uk) is called the URI, so if www.google.com/analytics/provision/ is the address, /analytics/provision/ would be the URI. The URI is the part that’s wrong when someone’s followed a outdated link which means we can use the URI to create a more helpful 404 page. To create a 404 page for your WordPress theme just create a 404.php file in the directory of your theme (/wp-content/themes/default/ is the default). Read the rest…
1st of January 2009 • 5 Comments »
Bug reporting is tricky. Bugs are problems in software where the software doesn’t work as it should. “It doesn’t work.” doesn’t get you anywhere with the developer of the software in question, so the key is to report exactly what happend and what should happen very clearly. Steven Frank (of Panic, Inc. software-makers) has made a list explaining what you should and shouldn’t do when reporting bugs. One of the things Frank specifically mentions as being good ways to convey bug reports are images and video.
A lot of open source projects use Bugzilla (of Mozilla origin) to track bugs and make discussion of those bugs possible. Shouldn’t Bugzilla make it possible (and easy!) to include images and video in bug reports?
If Buzzfeed can do it…
7th of September 2008 • 2 Comments »