Friday, 21 March 2008

Web fonts in Safari are funky

As mentioned below, I added a web fonts stylesheet to the blog for users of Safari 3.1 and later; however, there’s a deviation between the specification and Safari’s behavior, it seems. The spec says that you should specify a local font to use if available instead of downloading using the full font name of the local font (e.g. “DejaVu Sans Bold Oblique” or “Inconsolata Medium”), but Safari seems to only work right if you specify the family name (“DejaVu Sans” or “Inconsolata”). I think this is a bug in WebKit, and will file a bug report as soon as I get a password to do so, but the specification may be misleading here.

Update: Bug report filed.