MACROMEDIA FLEX 2-MIGRATING APPLICATIONS TO FLEX 2 Manual do Utilizador Página 126

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 184
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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.*.
Vista de página 125
1 2 ... 121 122 123 124 125 126 127 128 129 130 131 ... 183 184

Comentários a estes Manuais

Sem comentários