Using Adobe® Flex® 4 - Adobe Blogs
Using Adobe® Flex® 4 - Adobe Blogs
Using Adobe® Flex® 4 - Adobe Blogs
- TAGS
- using
- adobe
- blogs
- blogs.adobe.com
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Setting character ranges<br />
[Output: IPH, Print, Web] [EditorialStatus: Preliminary Review]<br />
USING FLEX 4<br />
Fonts<br />
By specifying a range of symbols that compose the face of an embedded font, you reduce the size of an embedded font.<br />
Each character in a font that you use must be described; removing some of these characters reduces the overall size of<br />
the description information that Flex must include for each embedded font.<br />
You can set the range of glyphs in the flex-config.xml file or in the @font-face declaration. You specify individual<br />
characters or ranges of characters using the Unicode values for the characters, and you can set multiple ranges for each<br />
font declaration.<br />
The syntax for setting a character range is as follows:<br />
U+[beginning of range]-[end of range];<br />
For example:<br />
U+0041-005A<br />
If you use a character that is outside of the declared range, Flex displays a device font for that character. For more<br />
information on setting character ranges in Flex applications, see the CSS-2 Fonts specification at<br />
www.w3.org/TR/1998/REC-CSS2-19980512/fonts.html#descdef-unicode-range.<br />
If you embed a font from a SWF file, you can restrict the character range in Flash. For more information, see<br />
Embedding fonts from SWF files.<br />
Setting ranges in font-face declarations<br />
[Chunk: No] [Output: IPH, Print, Web] [EditorialStatus: Preliminary Review]<br />
You can set the range of allowable characters in an MXML file by using the unicodeRange property of the @fontface<br />
declaration. The following example embeds the Myriad Web Pro font and defines the range of characters for the<br />
font in the tag:<br />
19