Using Embedded Fonts - Adobe FLEX 2-MIGRATING APPLICATIONS TO FLEX 2 Manual

Migrating applications to flex 2
Table of Contents

Advertisement

Using embedded fonts

You mjust use some differences in the syntax for embedded fonts. In addition, the default font
manager is changed.
The default font manager is actually both the Batik font manager and the JRE font manager.
You set them in the list of font managers in the flex-config.xml file. This is a reverse ordered
precedence. The preferred Batik font manager doesn't handle all embedded font commands,
so what it doesn't handle, it passes to the JRE font manager. In Flex 1.5, the default font
manager was the JRE Font Manager.
The following example shows the default setting for fontmanagers in Flex 1.5 (note that Batik
is commented out):
<fonts>
<managers>
<manager-class>macromedia.fonts.JREFontManager</manager-class>
<!-- <manager-class>macromedia.fonts.BatikFontManager</manager-class>
-->
</managers>
</fonts>
The following example hows the default font manager in Flex 2:
<fonts>
<managers>
<manager-class>flash.fonts.JREFontManager</manager-class>
<manager-class>flash.fonts.BatikFontManager</manager-class>
</managers>
</fonts>
The class names of the font managers are changed from macromedia.* to flash.*.
Syntactically, you must now specify the font face in the selector or you receive a warning
similar to the following:
"An embedded font was found for family 'myFont' but it did not have the
requested plain font face."
126
Styles and Skinning

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLEX 2-MIGRATING APPLICATIONS TO FLEX 2 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flex 2

Table of Contents