Well, if it was so easy... :) I've already read these FAQs several
times...
Here's my plugin configuration.
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<dependencies>
<dependency>
<groupId>com.adobe.flex</groupId>
<artifactId>compiler</artifactId>
<version>4.0.0.8811</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>com.adobe.flex</groupId>
<artifactId>flex-fontkit</artifactId>
<version>4.0.0.10485</version>
</dependency>
<dependency>
<groupId>com.adobe.flex</groupId>
<artifactId>afe</artifactId>
<version>4.0.0.10485</version>
</dependency>
<dependency>
<groupId>com.adobe.flex</groupId>
<artifactId>aglj32</artifactId>
<version>4.0.0.10485</version>
</dependency>
<dependency>
<groupId>com.adobe.flex</groupId>
<artifactId>rideau</artifactId>
<version>4.0.0.10485</version>
</dependency>
</dependencies>
<version>3.4.0</version>
<extensions>true</extensions>
<configuration>
<targetPlayer>10.0.0</targetPlayer>
<locales>
<locale>en_US</locale>
</locales>
<fonts>
<managers>
<!-- fix compiling some fonts, see
https://bugs.adobe.com/jira/browse/SDK-13856 -->
<manager>flash.fonts.AFEFontManager</manager>
<manager>flash.fonts.JREFontManager</manager>
<manager>flash.fonts.BatikFontManager</manager>
<manager>flash.fonts.CFFFontManager</manager>
</managers>
</fonts>
</configuration>
</plugin>
The only thing I'm not sure in is that I'm using compiler 4.0.0.8811,
but flex-fontkit and other dependencies are taken from 4.0.0.10485.
Can it be the reason of the problem?
On Jan 12, 4:54 pm, velo <[email protected]> wrote:
> http://flexmojos.sonatype.org/faq.html
>
> On Jan 12, 12:47 pm, chin <[email protected]> wrote:
>
>
>
> > Hi!
>
> > I’ve posted my message here (http://forums.adobe.com/thread/545892?
> > tstart=0), but I think you’re more experienced in that. Can you help
> > me to create pom.xml or configure maven to embed CFF fonts? I used SDK
> > 4.0.0.8811 downloaded from sonatype repository.
>
> > Here’s the message from the link:
>
> > Did anyone try to embed CFF fonts in maven. In FlexBuilder everything
> > is fine. I use the following code to build SWF resource:
>
> > package {
> > import flash.display.Sprite;
> > import flash.text.Font;
> > public class Avenir_LT_Std_35_Light_cff extends Sprite {
> > public function Avenir_LT_Std_35_Light_cff() {
> > Font.registerFont(fc1);
> > Font.registerFont(fc2);
> > }
> > [Embed (source="AvenirLTStd-Light.ttf", fontFamily="Avenir LT
> > Std 35 Light cff", embedAsCFF="true")]
> > public const fc1:Class;
> > [Embed (source="AvenirLTStd-LightOblique.ttf",
> > fontFamily="Avenir LT Std 35 Light cff", fontStyle= italic,
> > embedAsCFF="true")]
> > public const fc2:Class;
> > }}
>
> > Both FlexBuilder and Maven build the project successfully but Maven
> > does not generate CFF font. It seems to be non-CFF. I suggest I have
> > to add some options to pom.xml file, but I have no more ideas...
>
> > Kind Regards,
> > Alexander- Hide quoted text -
>
> - Show quoted text -
--
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?hl=en?hl=en
http://blog.flex-mojos.info/