Using Unicode ranges in Flex CSS

On my blog here at the top you can see the charecters polyGeek.com. That used to be a .png file but I just replaced the entire banner with a Flex App. Why you ask? Because that’s what we do. :-)

The font for polyGeek.com is Arial Black. Commen enough but it isn’t universal. ( Is any font? ) So I had to embed it. But I don’t want to embed the entire font. The user can’t type or anything so I only need the characters you see.

It would only take a few minutes to look up the unicode values for the specific characters to embed but why not spend an hour making an app in the off chance that I ever need to embed parts of another font.

view source

The app here removes any duplicate characters you might type in. But it doesn’t look for consecutive characters to make a range out of. It just makes a range of one for each character.

Check out the source code if you’d like to see how it’s done.

There is also an AIR version of this app – thanks or the suggestion Tink – which can be downloaded at the Adobe Marketplace.