Hi All,

I'm using Flexmojos 4.0-SNAPSHOT.

I have a project library swc file that contains a component
(LookupInput) which extends TextInput. My main application uses font
embedding which works fine for all text components within my main
application's source path. But when I use the library's LookupInput
component within my main application, it doesn't use embedded fonts.

Even if I explicitly set the embedded font for LookupInput in my main
application's CSS file, the compiled application doesn't use embedded
fonts for that component but for everything else.
If I compile using FlashBuilder, font embedding works fine for
everything.

I compared the config dumps of Flashbuilder/Flexmojos for both the
library and my main application but I can't spot anything that be
causing this behavior. But maybe I'm missing something.
Has anyone ever had a similar problem?

These are the important bits of my pom files:

My library:
-----------------------------------------------------------------------------------------------------------------
<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.example</groupId>
        <artifactId>common</artifactId>
        <version>1.0.0-SNAPSHOT</version>
        <packaging>swc</packaging>

        <name>common</name>

        <properties>
                <flex.version>4.5.0.20967</flex.version>
                <flexunit.version>0.90</flexunit.version>
        </properties>

        <build>
                <sourceDirectory>src/main/flex</sourceDirectory>
                <testSourceDirectory>src/test/flex</testSourceDirectory>
                <plugins>
                        <plugin>
                                <groupId>org.sonatype.flexmojos</groupId>
                                <artifactId>flexmojos-maven-plugin</artifactId>
                                <version>4.0-SNAPSHOT</version>
                                <extensions>true</extensions>
                                <configuration>
                                        <swfVersion>11</swfVersion>
                                        <targetPlayer>10.2.0</targetPlayer>
                                        <optimize>true</optimize>
                                        <loadConfig>mxmlcconf.xml</loadConfig>
                                        
<advancedAntiAliasing>true</advancedAntiAliasing>
                                        <maxCachedFonts>20</maxCachedFonts>
                                        
<maxGlyphsPerFace>1000</maxGlyphsPerFace>
                                        
<removeUnusedRsls>true</removeUnusedRsls>
                                        <managers>
                                                
<manager>flash.fonts.JREFontManager</manager>
                                                
<manager>flash.fonts.BatikFontManager</manager>
                                                
<manager>flash.fonts.AFEFontManager</manager>
                                                
<manager>flash.fonts.CFFFontManager</manager>
                                        </managers>
                                        <themes>
                                                
<theme>${basedir}/src/main/assets/css/MXFTEText.css</theme>
                                        </themes>
                                        <defaultFrameRate>24</defaultFrameRate>
                                        <ditaSkip>true</ditaSkip>
                                        <localesCompiled>
                                                <locale>en_US</locale>
                                        </localesCompiled>
                                </configuration>
                                <dependencies>
                                        <dependency>
                                                
<groupId>com.adobe.flex</groupId>
                                                
<artifactId>compiler</artifactId>
                                                
<version>${flex.version}</version>
                                                <type>pom</type>
                                        </dependency>
                                        <dependency>
                                                
<groupId>com.adobe.flex.compiler</groupId>
                                                
<artifactId>flex-fontkit</artifactId>
                                                
<version>${flex.version}</version>
                                                <type>pom</type>
                                        </dependency>
                                        <dependency>
                                                
<groupId>com.adobe.flex.compiler</groupId>
                                                <artifactId>afe</artifactId>
                                                
<version>${flex.version}</version>
                                                <type>pom</type>
                                        </dependency>
                                        <dependency>
                                                
<groupId>com.adobe.flex.compiler</groupId>
                                                <artifactId>aglj40</artifactId>
                                                
<version>${flex.version}</version>
                                                <type>pom</type>
                                        </dependency>
                                        <dependency>
                                                
<groupId>com.adobe.flex.compiler</groupId>
                                                <artifactId>rideau</artifactId>
                                                
<version>${flex.version}</version>
                                                <type>pom</type>
                                        </dependency>
                                </dependencies>
                        </plugin>
                </plugins>
        </build>

        <dependencies>
                <dependency>
                        <groupId>com.adobe.flex.framework</groupId>
                        <artifactId>flex-framework</artifactId>
                        <version>${flex.version}</version>
                        <type>pom</type>
                </dependency>
                <dependency>
                        <groupId>com.adobe.flexunit</groupId>
                        <artifactId>flexunit</artifactId>
                        <version>${flexunit.version}</version>
                        <type>swc</type>
                        <scope>test</scope>
                </dependency>
        </dependencies>
</project>
-----------------------------------------------------------------------------------------------------------------



My main application:
-----------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<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.example</groupId>
        <artifactId>scheduling</artifactId>
        <version>1.0.0-SNAPSHOT</version>
        <packaging>swf</packaging>
        <name>Scheduling</name>

        <properties>
                <flex.version>4.5.0.20967</flex.version>
                <tlf.version>2.0.0.232</tlf.version>
                <osmf.version>1.0.0.16316</osmf.version>

                <adobe.rsl.baseurl>https://fpdownload.adobe.com/pub/swz</
adobe.rsl.baseurl>
                <adobe.crossdomain.url>${adobe.rsl.baseurl}/crossdomain.xml</
adobe.crossdomain.url>
        </properties>


        <build>
                <finalName>Scheduling</finalName>
                <sourceDirectory>src/main/flex-filtered</sourceDirectory>
                <testSourceDirectory>src/test/flex</testSourceDirectory>

                <plugins>
                        <plugin>
                                <groupId>org.sonatype.flexmojos</groupId>
                                <artifactId>flexmojos-maven-plugin</artifactId>
                                <version>4.0-SNAPSHOT</version>
                                <extensions>true</extensions>
                                <configuration>
                                        <swfVersion>11</swfVersion>
                                        <targetPlayer>10.2.0</targetPlayer>
                                        <loadConfig>mxmlcconf.xml</loadConfig>
                                        <optimize>true</optimize>
                                        
<advancedAntiAliasing>true</advancedAntiAliasing>
                                        <maxCachedFonts>20</maxCachedFonts>
                                        
<maxGlyphsPerFace>1000</maxGlyphsPerFace>
                                        <managers>
                                                
<manager>flash.fonts.JREFontManager</manager>
                                                
<manager>flash.fonts.BatikFontManager</manager>
                                                
<manager>flash.fonts.AFEFontManager</manager>
                                                
<manager>flash.fonts.CFFFontManager</manager>
                                        </managers>
                                        <themes>
                                                
<theme>${basedir}/src/main/assets/css/MXFTEText.css</theme>
                                        </themes>
                                        <defaultFrameRate>60</defaultFrameRate>
                                        <rslUrls>
                                                
<url>${adobe.rsl.baseurl}/flex/{version}/{artifactId}_{version}.
{extension}</url>
                                                
<url>${adobe.rsl.baseurl}/tlf/${tlf.version}/{artifactId}_$
{tlf.version}.{extension}</url>
                                        </rslUrls>
                                        
<removeUnusedRsls>true</removeUnusedRsls>
                                        <policyFileUrls>
                                                
<url>${adobe.crossdomain.url}</url>
                                                
<url>${adobe.crossdomain.url}</url>
                                        </policyFileUrls>
                                        <localesRuntime>
                                                <locale>en_AU</locale>
                                        </localesRuntime>
                                        
<localesSourcePath>src/main/locales/{locale}</localesSourcePath>
                                        
<localesOutputPath>locales</localesOutputPath>
                                        <includeResourceBundles>
                                                <rb>Scheduling</rb>
                                                <rb>SharedResources</rb>
                                                <rb>collections</rb>
                                                <rb>components</rb>
                                                <rb>containers</rb>
                                                <rb>controls</rb>
                                                <rb>core</rb>
                                                <rb>effects</rb>
                                                <rb>formatters</rb>
                                                <rb>layout</rb>
                                                <rb>logging</rb>
                                                <rb>messaging</rb>
                                                <rb>rpc</rb>
                                                <rb>serializer</rb>
                                                <rb>skins</rb>
                                                <rb>sparkEffects</rb>
                                                <rb>styles</rb>
                                                <rb>textLayout</rb>
                                                <rb>validators</rb>
                                        </includeResourceBundles>
                                </configuration>
                                <dependencies>
                                        <dependency>
                                                
<groupId>com.adobe.flex</groupId>
                                                
<artifactId>compiler</artifactId>
                                                
<version>${flex.version}</version>
                                                <type>pom</type>
                                        </dependency>
                                        <dependency>
                                                
<groupId>com.adobe.flex.compiler</groupId>
                                                
<artifactId>flex-fontkit</artifactId>
                                                
<version>${flex.version}</version>
                                                <type>pom</type>
                                        </dependency>
                                        <dependency>
                                                
<groupId>com.adobe.flex.compiler</groupId>
                                                <artifactId>afe</artifactId>
                                                
<version>${flex.version}</version>
                                                <type>pom</type>
                                        </dependency>
                                        <dependency>
                                                
<groupId>com.adobe.flex.compiler</groupId>
                                                <artifactId>aglj40</artifactId>
                                                
<version>${flex.version}</version>
                                                <type>pom</type>
                                        </dependency>
                                        <dependency>
                                                
<groupId>com.adobe.flex.compiler</groupId>
                                                <artifactId>rideau</artifactId>
                                                
<version>${flex.version}</version>
                                                <type>pom</type>
                                        </dependency>
                                </dependencies>
                                <executions>
                                        <execution>
                                                <id>wrapper</id>
                                                <goals>
                                                        <goal>wrapper</goal>
                                                </goals>
                                                <configuration>
                                                        
<templateURI>folder:html-template/</templateURI>
                                                </configuration>
                                        </execution>
                                </executions>
                        </plugin>
                </plugins>
        </build>

        <dependencies>

                <!-- RSLs -->

                <dependency>
                        <groupId>com.adobe.flex.framework</groupId>
                        <artifactId>textLayout</artifactId>
                        <version>${flex.version}</version>
                        <type>swc</type>
                        <scope>caching</scope>
                </dependency>
                <dependency>
                        <groupId>com.adobe.flex.framework</groupId>
                        <artifactId>framework</artifactId>
                        <version>${flex.version}</version>
                        <type>swc</type>
                        <scope>caching</scope>
                </dependency>
                <dependency>
                        <groupId>com.adobe.flex.framework</groupId>
                        <artifactId>spark</artifactId>
                        <version>${flex.version}</version>
                        <type>swc</type>
                        <scope>caching</scope>
                </dependency>
                <dependency>
                        <groupId>com.adobe.flex.framework</groupId>
                        <artifactId>sparkskins</artifactId>
                        <version>${flex.version}</version>
                        <type>swc</type>
                        <scope>caching</scope>
                </dependency>
                <dependency>
                        <groupId>com.adobe.flex.framework</groupId>
                        <artifactId>rpc</artifactId>
                        <version>${flex.version}</version>
                        <type>swc</type>
                        <scope>caching</scope>
                </dependency>
                <dependency>
                        <groupId>com.adobe.flex.framework</groupId>
                        <artifactId>charts</artifactId>
                        <version>${flex.version}</version>
                        <type>swc</type>
                        <scope>caching</scope>
                </dependency>
                <dependency>
                        <groupId>com.adobe.flex.framework</groupId>
                        <artifactId>spark_dmv</artifactId>
                        <version>${flex.version}</version>
                        <type>swc</type>
                        <scope>caching</scope>
                </dependency>
                <dependency>
                        <groupId>com.adobe.flex.framework</groupId>
                        <artifactId>osmf</artifactId>
                        <version>${flex.version}</version>
                        <type>swc</type>
                        <scope>caching</scope>
                </dependency>
                <dependency>
                        <groupId>com.adobe.flex.framework</groupId>
                        <artifactId>mx</artifactId>
                        <version>${flex.version}</version>
                        <type>swc</type>
                        <scope>caching</scope>
                </dependency>
                <dependency>
                        <groupId>com.adobe.flex.framework</groupId>
                        <artifactId>advancedgrids</artifactId>
                        <version>${flex.version}</version>
                        <type>swc</type>
                        <scope>caching</scope>
                </dependency>


                <dependency>
                        <groupId>com.adobe.flex.framework</groupId>
                        <artifactId>flex-framework</artifactId>
                        <version>${flex.version}</version>
                        <type>pom</type>
                </dependency>
                <dependency>
                        <groupId>com.adobe.flexunit</groupId>
                        <artifactId>flexunit</artifactId>
                        <version>0.90</version>
                        <type>swc</type>
                        <scope>test</scope>
                </dependency>


                <!-- my library -->
                <dependency>
                        <groupId>com.example</groupId>
                        <artifactId>common</artifactId>
                        <version>1.0.0-SNAPSHOT</version>
                        <type>swc</type>
                        <scope>merged</scope>
                </dependency>

        </dependencies>
</project>

-----------------------------------------------------------------------------------------------------------------

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