I don't know if it works for Flex 4, but I am using flexmojos and Flex
3 and successfully embeding fonts through code:

<mx:Script>
                <![CDATA[
        import mx.containers.Accordion;

        /* We have to embed a font for the HAccordion. Without doing this the
         * labels that are rotated will be invisible. In Main.css we reference
         * the bolded font named 'accordionHeader' so that needs to
match here*/

        [Embed(systemFont='Arial', fontWeight="bold",
fontName='accordionHeader', mimeType='application/x-font',
advancedAntiAliasing='true')]
        private var font1:Class;
                ]]>
        </mx:Script>

then use it in css like this:

fontFamily: accordionHeader;

Best regards,


Alexandre M. Reis
http://alexmreis.com

On Fri, Jun 18, 2010 at 10:06 PM, [email protected]
<[email protected]> wrote:
> Hi,
>
> I'm not being able to embed fonts in the swf.
>
> I'm using flexmojos 4 and flex 4.1.0.16076
>
> I did setup the plugin dependencies, but I don't know if this is still
> necessary, (flex-fontkit, afe, aglj40, rideau) with flex mojos 4.
>
> Are the instructions (deps + license) for embedding fonts with flex 3
> still applicable with flex 4?
>
> If not, how can I embed fonts, is there an example with flex4?
>
> Thanks in advance
>
> Nico
>
> --
> You received this message because you are subscribed to the Google
> Groups "Flex Mojos" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/flex-mojos
>
> http://flexmojos.sonatype.org/
>

-- 
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos

http://flexmojos.sonatype.org/

Reply via email to