views:

510

answers:

2

I would like to embed just a subset of characters from a font (for example only a certain number of Chinese characters instead of the whole character set).

The traditional way I've known how to do this is using the "Include these characters" input box method outlined below:

http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?content=00000277.html

Is there a way to do the equivalent using only ActionScript? (and without using Flex)

+1  A: 

You can do it with FLEX: http://livedocs.adobe.com/flex/3/html/help.html?content=fonts_07.html

tst
+1  A: 

Fonts can be embeded using just actionscript with the embed metatag. For example:

[Embed(source = 'myfont.ttf', fontFamily = "MyFont", unicodeRange = 'U+0041-U+005A,U+0061-U+007A')]
var FontClass :  Class;

See here for more information.

gmj