Hi,

I'm having a problem with fonts, I'm using a custom font defined in my
style.css file that is as following:
@font-face
{
        src: url("media/fonts/FuturaMaxiBook.ttf");
        fontFamily: FuturaMaxiBook;
        fontWeight: normal;
        embedAsCFF: true;
}

That is perfectly working using FlexMojos 3.9 and compiling with the
SDK 4.5.1.21328, but now I want to move the project to SDK 4.6 and if
I use FlexMojos 4 the font is not correctly displayed and an ugly
custom font is displayed instead. Why is this happening? Is there
something I'm doing wrong?

Current pom.xml that is not working:
<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://
maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>
        <modelVersion>4.0.0</modelVersion>
        <groupId>com.cognifit.cognifitSocialFlex</groupId>
        <artifactId>FlexCognifit</artifactId>
        <version>3.0.0.1</version>
        <packaging>swf</packaging>
        <name>cognifitSocialFlex</name>

        <build>
                <sourceDirectory>src</sourceDirectory>
                <plugins>
                        <plugin>
                                <groupId>org.sonatype.flexmojos</groupId>
                                <artifactId>flexmojos-maven-plugin</artifactId>
                                <version>4.0-RC2</version>
                                <extensions>true</extensions>
                                <configuration>
                                        
<sourceFile>CpcSocialFlex.mxml</sourceFile>
                                        
<configFile>.settings/flex-config.xml</configFile>
                                        <swfVersion>13</swfVersion>
                                        <targetPlayer>11.1.0</targetPlayer>
                                        <compiledLocales>
                                                <locale>en_US</locale>
                                                <locale>es_ES</locale>
                                                <locale>fr_FR</locale>
                                                <locale>de_DE</locale>
                                                <locale>it_IT</locale>
                                        </compiledLocales>
                                        <runtimeLocales>
                                                <locale>en_US</locale>
                                                <locale>es_ES</locale>
                                                <locale>fr_FR</locale>
                                                <locale>de_DE</locale>
                                                <locale>it_IT</locale>
                                        </runtimeLocales>
                                </configuration>
                                <executions>
                                        <execution>
                                                <id>compile-swf</id>
                                                <goals>
                                                        <goal>compile-swf</goal>
                                                </goals>
                                        </execution>
                                        <execution>
                                                <id>wrapper</id>
                                                <goals>
                                                        <goal>wrapper</goal>
                                                </goals>
                                                <configuration>
                                                        <parameters>
                                                                
<title>FlexCognifit</title>
                                                                
<bgcolor>#ffffff</bgcolor>
                                                                
<width>100%</width>
                                                                
<height>100%</height>
                                                        </parameters>
                                                        
<templateURI>folder:html-template</templateURI>
                                                        
<htmlName>FlexCognifit-${project.version}</htmlName>
                                                </configuration>
                                        </execution>
                                </executions>
                                <dependencies>
                                        <dependency>
                                                
<groupId>com.adobe.flex</groupId>
                                                
<artifactId>compiler</artifactId>
                                                <version>4.5.1.21328</version>
                                                <type>pom</type>
                                        </dependency>
                                </dependencies>
                        </plugin>

                        <plugin>
                                <artifactId>maven-resources-plugin</artifactId>
                                <version>2.5</version>
                                <executions>
                                        <execution>
                                                <id>copy-resources</id>
                                                <phase>compile</phase>
                                                <goals>
                                                        
<goal>copy-resources</goal>
                                                </goals>
                                                <configuration>
                                                        
<outputDirectory>${basedir}/target/media/</outputDirectory>
                                                        <resources>
                                                                <resource>
                                                                        
<directory>${basedir}/src/media</directory>
                                                                        
<filtering>false</filtering>
                                                                </resource>
                                                        </resources>
                                                </configuration>
                                        </execution>
                                </executions>
                        </plugin>
                </plugins>
        </build>

        <dependencies>
                <dependency>
                        <groupId>com.adobe.flex.framework</groupId>
                        <artifactId>flex-framework</artifactId>
                        <version>4.5.1.21328</version>
                        <type>pom</type>
                </dependency>
                <dependency>
                        <groupId>org.spicefactory</groupId>
                        <artifactId>parsley-flex4</artifactId>
                        <version>2.4.0</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>org.spicefactory</groupId>
                        <artifactId>spicelib-core</artifactId>
                        <version>2.4.0</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>org.spicefactory</groupId>
                        <artifactId>spicelib-flash-support</artifactId>
                        <version>2.4.0</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>org.spicefactory</groupId>
                        <artifactId>spicelib-reflect</artifactId>
                        <version>2.4.0</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>org.spicefactory</groupId>
                        <artifactId>spicelib-task</artifactId>
                        <version>2.4.0</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>org.spicefactory</groupId>
                        <artifactId>spicelib-xml</artifactId>
                        <version>2.4.0</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>com.adobe.lcds</groupId>
                        <artifactId>fiber</artifactId>
                        <version>4.5.1.313231</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>com.adobe.lcds</groupId>
                        <artifactId>fiber_rb</artifactId>
                        <version>4.5.1.313231</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>com.adobe.lcds</groupId>
                        <artifactId>serializers</artifactId>
                        <version>4.5.1.313231</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>com.adobe.lcds</groupId>
                        <artifactId>serializers_rb</artifactId>
                        <version>4.5.1.313231</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>com.adobe</groupId>
                        <artifactId>FlexUnit</artifactId>
                        <version>0.9</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>com.cognifit</groupId>
                        <artifactId>cognifitTaskLib</artifactId>
                        <version>1.3</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>com.cognifit</groupId>
                        <artifactId>cognifitSocialFlexCharts</artifactId>
                        <version>1.25</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>com.adobe.flex.framework</groupId>
                        <artifactId>halo</artifactId>
                        <version>4.6.b.23201</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>com.google</groupId>
                        <artifactId>analytics</artifactId>
                        <version>1.0.1.319</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>com.google</groupId>
                        <artifactId>analytics_flash</artifactId>
                        <version>1.0.1.319</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>com.facebook</groupId>
                        <artifactId>GraphAPIWeb</artifactId>
                        <version>1.8.1</version>
                        <type>swc</type>
                </dependency>
        </dependencies>
</project>

(If I use SDK version 4.6.b.23201 the result is the same, it doesn't
work)

Previous pom.xml that is working:
<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://
maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>
        <modelVersion>4.0.0</modelVersion>
        <groupId>com.cognifit.cognifitSocialFlex</groupId>
        <artifactId>FlexCognifit</artifactId>
        <version>3.0.0.1</version>
        <packaging>swf</packaging>
        <name>cognifitSocialFlex</name>

        <build>
                <sourceDirectory>src</sourceDirectory>
                <plugins>
                        <plugin>
                                <groupId>org.sonatype.flexmojos</groupId>
                                <artifactId>flexmojos-maven-plugin</artifactId>
                                <version>3.9</version>
                                <extensions>true</extensions>
                                <configuration>
                                        
<sourceFile>CpcSocialFlex.mxml</sourceFile>
                                        
<configFile>.settings/flex-config.xml</configFile>
                                        <targetPlayer>10.2.0</targetPlayer>
                                        <compiledLocales>
                                                <locale>en_US</locale>
                                                <locale>es_ES</locale>
                                                <locale>fr_FR</locale>
                                                <locale>de_DE</locale>
                                                <locale>it_IT</locale>
                                        </compiledLocales>
                                        <runtimeLocales>
                                                <locale>en_US</locale>
                                                <locale>es_ES</locale>
                                                <locale>fr_FR</locale>
                                                <locale>de_DE</locale>
                                                <locale>it_IT</locale>
                                        </runtimeLocales>
                                </configuration>
                                <executions>
                                        <execution>
                                                <id>compile-swf</id>
                                                <goals>
                                                        <goal>compile-swf</goal>
                                                </goals>
                                        </execution>
                                        <execution>
                                                <id>wrapper</id>
                                                <goals>
                                                        <goal>wrapper</goal>
                                                </goals>
                                                <configuration>
                                                        <parameters>
                                                                
<title>FlexCognifit</title>
                                                                
<bgcolor>#ffffff</bgcolor>
                                                                
<width>100%</width>
                                                                
<height>100%</height>
                                                        </parameters>
                                                        
<templateURI>folder:html-template</templateURI>
                                                        
<htmlName>FlexCognifit-${project.version}</htmlName>
                                                </configuration>
                                        </execution>
                                </executions>
                                <dependencies>
                                        <dependency>
                                                
<groupId>com.adobe.flex</groupId>
                                                
<artifactId>compiler</artifactId>
                                                <version>4.5.1.21328</version>
                                                <type>pom</type>
                                        </dependency>
                                </dependencies>
                        </plugin>

                        <plugin>
                                <artifactId>maven-resources-plugin</artifactId>
                                <version>2.5</version>
                                <executions>
                                        <execution>
                                                <id>copy-resources</id>
                                                <phase>compile</phase>
                                                <goals>
                                                        
<goal>copy-resources</goal>
                                                </goals>
                                                <configuration>
                                                        
<outputDirectory>${basedir}/target/media/</outputDirectory>
                                                        <resources>
                                                                <resource>
                                                                        
<directory>${basedir}/src/media</directory>
                                                                        
<filtering>false</filtering>
                                                                </resource>
                                                        </resources>
                                                </configuration>
                                        </execution>
                                </executions>
                        </plugin>
                </plugins>
        </build>

        <dependencies>
                <dependency>
                        <groupId>com.adobe.flex.framework</groupId>
                        <artifactId>flex-framework</artifactId>
                        <version>4.5.1.21328</version>
                        <type>pom</type>
                </dependency>
                <dependency>
                        <groupId>org.spicefactory</groupId>
                        <artifactId>parsley-flex4</artifactId>
                        <version>2.4.0</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>org.spicefactory</groupId>
                        <artifactId>spicelib-core</artifactId>
                        <version>2.4.0</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>org.spicefactory</groupId>
                        <artifactId>spicelib-flash-support</artifactId>
                        <version>2.4.0</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>org.spicefactory</groupId>
                        <artifactId>spicelib-reflect</artifactId>
                        <version>2.4.0</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>org.spicefactory</groupId>
                        <artifactId>spicelib-task</artifactId>
                        <version>2.4.0</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>org.spicefactory</groupId>
                        <artifactId>spicelib-xml</artifactId>
                        <version>2.4.0</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>com.adobe.lcds</groupId>
                        <artifactId>fiber</artifactId>
                        <version>4.5.1.313231</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>com.adobe.lcds</groupId>
                        <artifactId>fiber_rb</artifactId>
                        <version>4.5.1.313231</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>com.adobe.lcds</groupId>
                        <artifactId>serializers</artifactId>
                        <version>4.5.1.313231</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>com.adobe.lcds</groupId>
                        <artifactId>serializers_rb</artifactId>
                        <version>4.5.1.313231</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>com.adobe</groupId>
                        <artifactId>FlexUnit</artifactId>
                        <version>0.9</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>com.cognifit</groupId>
                        <artifactId>cognifitTaskLib</artifactId>
                        <version>1.3</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>com.cognifit</groupId>
                        <artifactId>cognifitSocialFlexCharts</artifactId>
                        <version>1.25</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>com.adobe.flex.framework</groupId>
                        <artifactId>halo</artifactId>
                        <version>4.5.1.313231</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>com.google</groupId>
                        <artifactId>analytics</artifactId>
                        <version>1.0.1.319</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>com.google</groupId>
                        <artifactId>analytics_flash</artifactId>
                        <version>1.0.1.319</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>com.facebook</groupId>
                        <artifactId>GraphAPIWeb</artifactId>
                        <version>1.8.1</version>
                        <type>swc</type>
                </dependency>
        </dependencies>
</project>

Thanks a lot for your help!

-- 
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