Nimbupani Designs

Multi-Lingual Fonts with Typotheque and Font Face

I wrote about the great debate on @font-face, and was pleasantly surprised when Peter Bilak of Typotheque invited me to beta-test their webfont service.

The primary advantages of Typotheque’s service is ease of use and faster load times (as compared to others). It only uses CSS (not javascript) to generate the font stack. By using font subsetting, the service generates smaller font files.

How to Use Typotheque Webfonts

  • Create an account with Typotheque.
  • Purchase fonts from a list of available webfonts.
  • Create a project on your account. Here you set which fonts you would like to use, the language you will use the font in, and domain it will be used in (you can set multiple domains).
  • The service generates a CSS file and gives you the link to it that you just need to add to between <head></head> of your HTML page.
  • You cannot access the CSS file by loading the url given above directly in your browser. Same is true for the font files as well.
  • If you are more street-savy, you might be able to download the font, but you can’t install it on your machine as it is not strictly a TrueType font.

Typotheque’s business model is to charge according to bandwidth usage (which seems fair). The exact prices are not available yet (nor are the EULAs for webfonts) and might just be the deciding factor in how successful this service becomes.

If you would like to know how the interface looks like, head over to Andy Clarke’s blog post on it.

Multi-Lingual Fonts with @font-face

Here is my demo page with Typotheque font faces.

As you can see, I have used their first Devanagri webfont “Fedra Sans Hindi”. It renders beautifully in browsers supporting @font-face on Windows. However, it is a different story on the mac. See the picture below:

Typotheque Multilingual Demo

Apple uses their own proprietary Apple Advanced Typography (which is a set of extensions on top of True Type Font) for rendering complex ligatures which are found in Arabic or Devanagari scripts. There is a way to specify fonts such that you can provide the AAT format for Mac OS X and other kinds of fonts for the rest of the browsers:

@font-face {
	font-family: Lateef;
	src: url(../fonts/LateefRegAAT.ttf) format("truetype-aat"), 
	url(../fonts/LateefRegOT.ttf) format("opentype");
}

Currently, in the CSS 3 draft, the following font formats can be specified – True Type (supported by Opera, Safari, Firefox), OpenType (Opera, Safari, Firefox), Embedded OpenType (Internet Explorer), SVG Font (Safari & Opera – I cannot confirm if Firefox supports it, IE definitely does not).

Unfortunately, Typotheque does not generate the AAT format font for their multi-lingual webfonts (you can see in my demo that the Hindi text is not rendered correctly, in all OS X browsers except Firefox, because of that). Firefox 3.5 on the Mac OS X, interestingly, does not use the font specified in the @font-face if it is not an AAT type of font. John Dagett explains it quite well in his comment.

They have a point. Recently, Apple started supporting Open Type rendering for Arabic scripts (which means Typotheque’s Arabic webfont will be rendered correctly by all browser in Mac OS X 10.5). Typotheque feels that they would expand this to other scripts as well (like Devanagari) in the future. Updating their service to support yet another font format would require weeks of work.

On the whole, I think this service has great potential and is a simpler alternative to Typekit or Kernest.

Comments

Comments are closed for this post. Please message me on twitter, if you would like to comment.
 
Guest's picture

Right, Firefox code currently uses ATSUI under Mac OS X which only support shaping for AAT fonts. There’s an explicit check for AAT tables and without them FF renders in the fallback font (rather than showing unshaped glyphs). We’ve implemented support for Apple’s CoreText but we’ll have to wait until CoreText supports OpenType Layout for a wider set of Indic scripts.

Regards,

John Daggett
Mozilla Japan

 
divya's picture

Wow, that explains quite a bit!

 
Guest's picture

Maybe it’s a screen cap/resolution problem but it definitely is not looking beautiful on windows either here. There’s some undue cropping going on atop the line, the rafaar on the m of dharmagranth looks like an anusvar and so on.

 
Guest's picture

The font clipping can be fixed directly with the font (the font on the picture is still in development), but for consistent rendering across platforms we have to wait for Apple full support of OpenType layout tables.

 
divya's picture

Thanks a lot! Will update my post.

 
Guest's picture

do they support Arabic fonts? also as far as i know this is only allowed in CSS3 right?

 
divya's picture

@Egypt Web Design: Yes they do support Arabic fonts (Mac OS X can render them too — unlike Devnagari scripts. IE supports @font-face using EOT, so it should work cross-browser.