MACROMEDIA FLEX 2-MIGRATING APPLICATIONS TO FLEX 2 Manuel d'utilisateur Page 126

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 184
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 125
126 Styles and Skinning
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 doesnt handle all embedded font commands,
so what it doesnt 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>
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.”
NOTE
The class names of the font managers are changed from macromedia.* to flash.*.
Vue de la page 125
1 2 ... 121 122 123 124 125 126 127 128 129 130 131 ... 183 184

Commentaires sur ces manuels

Pas de commentaire