Using fonts
403
Another example of an XML
glyphRange
node is the
Numerals [0..9]
node:
<glyphRange name="Numerals [0..9] " id="3" >
<range min="0x0030" max ="0x0039" />
<range min="0x002E" max ="0x002E" />
</glyphRange>
This range of characters includes the Unicode values 0x0030 (zero) through 0x0039 (9), as
well as 0x002E (.).
Before you create a custom character set, you need to know the characters and their
corresponding Unicode values. The best place to find Unicode values is the Unicode
Standards web site,
www.unicode.org
, which contains the Unicode Character Code chart for
dozens of languages.
To create and use a custom character set:
1.
Open the UnicodeTable.xml document, located in the
<Flash install
directory>
\
<language>
\First Run\FontEmbedding\ directory, using an XML or text editor
such as Notepad or TextEdit.
2.
Scroll to the bottom of the XML document and add the following XML code directly
before the closing
</fontEmbeddingTable>
node:
<glyphRange name="Uppercase and Numerals [A..Z,0..9] " id="100" >
<range min="0x0020" max ="0x0020" />
<range min="0x002E" max ="0x002E" />
<range min="0x0030" max ="0x0039" />
<range min="0x0041" max ="0x005A" />
</glyphRange>
3.
Save your changes to UnicodeTable.xml.
If you have Flash open, you must restart the application before you can use the new
character set.
4.
Open or restart Flash and then create a new Flash document.
CAU
T
IO
N
To add custom character sets, you need to edit an XML file in the Flash installation
folder. Before you edit this file, you should make a backup copy in case you want to
revert to the original Unicode table.
CAU
T
IO
N
Macromedia recommends that you do not modify the existing character sets that are
installed with Flash, and that you instead make your own custom character sets that
include the characters and punctuation that you require.
NO
TE
Remember to save a backup of this document, in case you want to revert to the
original file that is installed with Flash.
Summary of Contents for FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH
Page 1: ...Learning ActionScript 2 0 in Flash...
Page 8: ...8 Contents...
Page 18: ...18 Introduction...
Page 30: ...30 What s New in Flash 8 ActionScript...
Page 66: ...66 Writing and Editing ActionScript 2 0...
Page 328: ...328 Interfaces...
Page 350: ...350 Handling Events...
Page 590: ...590 Creating Interaction with ActionScript...
Page 710: ...710 Understanding Security...
Page 730: ...730 Debugging Applications...
Page 780: ...780 Deprecated Flash 4 operators...
Page 830: ...830 Index...