
Type Stamp Example
If you desire to use a typeface of choice in a HTML site, regardless of whether or not your users have that font installed on their systems, you basically have three options: sIFR, static images, or Font Embedding which is now supported in Safari and will be in Firefox 3.5.
“sIFR (or Scalable Inman Flash Replacement) is a technology that allows you to replace text elements on screen with Flash equivalents” – sIFR
sIFR uses Flash, which is its strengh and weakness. It’s nice because the text is dynamic HTML text. Some disadvantages are performance (especially if you’re using transparent swfs), and accesibility – no flash player, no custom fonts.
But the only alternative other than font embedding is static jpegs, gifs, or pngs.
True, but thats not so bad, atleast if you have this ExtendScript it isn’t.
The idea is simple, make it really easy to make a bunch of images for custom font HTML headers designed from a psd file. So you provide this script a psd and an Array of Strings. Then you pick a directory to save the images, and the output settings (jpeg, png, gif). It will turn each String in the Array into an image created from your psd. You’ll then be asked if you’d like it to save a xml file of HTML img tags, populated from the String value, and the width and height of the image.
So it saves quiet a bit of time as you don’t need to create and then save out each image from Photoshop, and having it spit out the pre-made img tags for you is pretty handy.
You’ll need Adobe ExtendScript Toolkit, which you probably have if you have Photoshop CS3 or newer.
Here’s the script.
If you’re asking yourself if the script is outdated due to browser font embedding, it may be in most cases, but there still may be times where its desirable to use type as image. The script isn’t only web specific, it can be used on print resolution .psd files for batch processing for print work, or whatever else.