Hi,
thanks to all,
indeed, this 'problem' was in a multi module project, so I did set up
a simple flex application and it worked out without problems:
with flex mojos 3, just adding compiler, flex-fontkit, afe and rideau
dependencies to flexmojos-maven-plugin,
with flex mojos 4, adding those dependencies, plus setting
<managers><manager>flash.fonts.CFFFontManager</manager></managers>
made it work.
As this is the 'embedasCFF' font manager, I must create an artifact
from MXFTEText.css and add it with theme scope to use Flash Text
Engine with MX components
Return back to the multi module project, adding those deps didn't
worked out straightforward, I 'must' restore the
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.4.3</version>
<executions>
<execution>
<id>copy-resources</id>
<phase>validate</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>src/main/flex/</outputDirectory>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>false</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
That I had removed from build since flexmojos 4 was getting the assets
from resources, and then the 'embed' worked out.
Maybe is just a 'encoding' problem, I'm on mac and build encoding is
set to UTF-8, I've seen in mojos -X the 'ttf is a filtering
extension'
Maybe we should update the doc on how to embed font with flexmojos and
flex 4 (add managers) or wait until flexmojos 4 is final.
Thanks again for this flex mojos 4, optimzewsf, create rsl, coverage
and all new edge features!!!!
Thanks all again
Nico
On 20 jun, 08:15, Logan Allred <[email protected]> wrote:
> On Fri, Jun 18, 2010 at 2:06 PM, [email protected]
>
> <[email protected]> wrote:
> > 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?
>
> I'm not using FM4 or font embedding, so I'm not sure either. The first
> step is usually to get a sample working in Flash Builder first, then
> see if Flexmojos handles it properly. Then diff the config files to
> see why the parameters are different (see FAQ for this).
>
> Logan
--
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/