Typekit adds support for Adobe AIR 2.5

Today, Adobe released AIR 2.5, which includes support for @font-face.  We’ve been anticipating this release, working with Adobe engineers to ensure Typekit and AIR work together in the best way possible, and we’re excited to announce that we’ve added support for AIR 2.5 to Typekit.  This brings Typekit to yet another platform, allowing developers to include rich typography in the web apps they create with AIR.  We can’t wait to see how Typekit gets put to use in this new context.

Using Typekit in an HTML-based AIR app is simple: just define an <i​frame> within the top-level HTML content that sets sandboxRoot to one of the domains in your kit:

Here’s an example:

<i​frame src="main.html" 	 	 
 width="100%" 	 	 
 height="100%" 	 	 
 documentRoot="app:/"	 	 
 sandboxRoot="http://example.com">	 	 
</i​frame>

Then, you can use Typekit as usual in your AIR app’s HTML files:

<html>
  <head>
    <title>Sample AIR App</title>
    http://use.typekit.com/xxxxxxx.js
    try{Typekit.load();}catch(e){}
  </head>
  <body>
    Hello world!
  </body>
</html>

As always, we’d love to hear about the AIR apps you develop using Typekit. Let us know!

Gregory Veen

Co-founder of Typekit, where I work on product management. Designer and developer of websites and software since 1994 for companies like Google, Twitter, and others. @gregveen on Twitter.

Sites we like: Smithsonian Channel, Glass House Conversations, and The Office of Frank Chimero

Mandy Brown · October 22, 2010 · Using Type

Photoshelter partners with Typekit

Mandy Brown · October 28, 2010 · Using Type