Hey Nicolas,

I'm new to using flexmojos and so I can't answer the questions you have,
but you might be able to gain better insight into the problem by having
flexbuilder dump its compiler configuration to a file (see
http://www.morearty.com/blog/2009/01/23/how-to-capture-the-compilation-options-used-by-flex-builder/)
and then building in maven with "-X" to see what flexmojos is passing to
the compiler. Comparing the difference may lead you to your answer.

Good luck.

On Fri, Jan 27, 2012 at 8:07 AM, Christofer Dutz <
[email protected]> wrote:

> Think this should help you:
> https://dev.c-ware.de/confluence/display/PUBLIC/Embedding+%28CFF%29+fonts
>
> Chris
>
> 2012/1/25 nicolas <[email protected]>:
> > Hi,
> >
> > It's been several days that I try to figure out how to have my fonts
> > embedded from a CSS stylesheet with Flexmojos 4.0RC2 without success.
> > Been reading tons of threads, emails, group messages and so on without
> > finding a clear answer.
> > Been trying several configurations that all failed (silently or not).
> >
> > So far, the only way I get the build not to fail is by putting my
> > stylesheet into src/main/flex/styles.css and the fonts into src/main/
> > flex/assets/font.ttf; then the CSS style is applied (colors, etc...)
> > but the fonts do not show up... (no error on build, nothing...)
> > The only way I get the fonts in my app is by not building with maven
> > but with Flash Builder 4.0 from Eclipse Indigo.
> > I need to get the maven build produce the app correctly (just as Flash
> > Builder does).
> >
> > So here are my questions:
> > - where, by convention, does Flexmojos 4.0RC2 expect a CSS stylesheet
> > to be? (src/main/resources? src/main/flex? src/main/resources/
> > assets?...)
> > - where, by convention, does Flexmojos 4.0RC2 expect the font files to
> > be? (src/main/resources? src/main/flex? src/main/resources/assets?...)
> > - are there any specifics to add to the POM if respecting those
> > conventions? (I'm thinking about this:
> http://flexmojos.sonatype.org/faq.html#6)
> >
> > ${flexmojos.version} = 4.0RC2
> > ${flex.framework.version} = 4.0.0.14159
> > ${graniteds.version} = 2.3.0.GA
> >
> > Here's my current pom.xml:
> > =========================
> > ...
> >    <build>
> >        <finalName>myproject</finalName>
> >        <sourceDirectory>src/main/flex</sourceDirectory>
> >        <testSourceDirectory>src/test/flex</testSourceDirectory>
> >        <resources>
> >            <resource>
> >                <directory>src/main/resources</directory>
> >            </resource>
> >        </resources>
> >
> >        <pluginManagement>
> >            <plugins>
> >                <plugin>
> >                    <groupId>org.sonatype.flexmojos</groupId>
> >                    <artifactId>flexmojos-maven-plugin</artifactId>
> >                    <version>${flexmojos.version}</version>
> >                </plugin>
> >            </plugins>
> >        </pluginManagement>
> >
> >        <plugins>
> >            <plugin>
> >                <groupId>org.sonatype.flexmojos</groupId>
> >                <artifactId>flexmojos-maven-plugin</artifactId>
> >                <version>${flexmojos.version}</version>
> >                <extensions>true</extensions>
> >                <executions>
> >                    <execution>
> >                        <goals>
> >                            <goal>generate</goal>
> >                        </goals>
> >                        <configuration>
> >                            <baseOutputDirectory>$
> > {project.build.directory}/generated-sources</baseOutputDirectory>
> >                            <outputDirectory>$
> > {project.build.directory}/../src/main/flex</outputDirectory>
> >                            <extraOptions>
> >                                <tide>true</tide>
> >                                <uid>uid</uid>
> >
> > <entityFactory>org.granite.generator.as3.BVEntityFactory</
> > entityFactory>
> >
> > <outputEnumToBaseOutputDirectory>false</
> > outputEnumToBaseOutputDirectory>
> >                            </extraOptions>
> >                            <includeJavaClasses>
> >                                <include>my.pkg.entities.**</include>
> >                                <include>my.pkg.services.*Service</
> > include>
> >                            </includeJavaClasses>
> >                        </configuration>
> >                    </execution>
> >                </executions>
> >                <dependencies>
> >                    <dependency>
> >                        <groupId>org.hibernate.javax.persistence</
> > groupId>
> >                        <artifactId>hibernate-jpa-2.0-api</artifactId>
> >                        <version>1.0.1.Final</version>
> >                    </dependency>
> >                    <dependency>
> >                        <groupId>javax.validation</groupId>
> >                        <artifactId>validation-api</artifactId>
> >                        <version>1.0.0.GA</version>
> >                    </dependency>
> >                    <dependency>
> >                        <groupId>javax.jdo</groupId>
> >                        <artifactId>jdo2-api</artifactId>
> >                        <version>2.3-eb</version>
> >                    </dependency>
> >                    <dependency>
> >                        <groupId>org.codehaus.groovy</groupId>
> >                        <artifactId>groovy</artifactId>
> >                        <version>1.6.0</version>
> >                    </dependency>
> >                    <dependency>
> >                        <groupId>antlr</groupId>
> >                        <artifactId>antlr</artifactId>
> >                        <version>2.7.7</version>
> >                    </dependency>
> >                    <dependency>
> >                        <groupId>asm</groupId>
> >                        <artifactId>asm</artifactId>
> >                        <version>2.2.3</version>
> >                    </dependency>
> >                    <dependency>
> >                        <groupId>com.thoughtworks.xstream</groupId>
> >                        <artifactId>xstream</artifactId>
> >                        <version>1.2.2</version>
> >                    </dependency>
> >                    <dependency>
> >                        <groupId>org.graniteds</groupId>
> >                        <artifactId>granite-core</artifactId>
> >                        <version>${graniteds.version}</version>
> >                    </dependency>
> >                    <dependency>
> >                        <groupId>org.graniteds</groupId>
> >                        <artifactId>granite-generator-share</
> > artifactId>
> >                        <version>${graniteds.version}</version>
> >                    </dependency>
> >                    <dependency>
> >                        <groupId>org.graniteds</groupId>
> >                        <artifactId>granite-generator</artifactId>
> >                        <version>${graniteds.version}</version>
> >                    </dependency>
> >                </dependencies>
> >            </plugin>
> >
> >            <plugin>
> >                <groupId>org.sonatype.flexmojos</groupId>
> >                <artifactId>flexmojos-maven-plugin</artifactId>
> >                <version>${flexmojos.version}</version>
> >                <extensions>true</extensions>
> >                <dependencies>
> >                    <dependency>
> >                        <groupId>com.adobe.flex</groupId>
> >                        <artifactId>compiler</artifactId>
> >                        <version>${flex.framework.version}</version>
> >                        <type>pom</type>
> >                    </dependency>
> >                    <dependency>
> >                        <groupId>com.adobe.flex.compiler</groupId>
> >                        <artifactId>flex-fontkit</artifactId>
> >                        <version>${flex.framework.version}</version>
> >                        <type>jar</type>
> >                    </dependency>
> >                    <dependency>
> >                        <groupId>com.adobe.flex.compiler</groupId>
> >                        <artifactId>afe</artifactId>
> >                        <version>${flex.framework.version}</version>
> >                        <type>jar</type>
> >                    </dependency>
> >                    <dependency>
> >                        <groupId>com.adobe.flex.compiler</groupId>
> >                        <artifactId>aglj40</artifactId>
> >                        <version>${flex.framework.version}</version>
> >                        <type>jar</type>
> >                    </dependency>
> >                    <dependency>
> >                        <groupId>com.adobe.flex.compiler</groupId>
> >                        <artifactId>rideau</artifactId>
> >                        <version>${flex.framework.version}</version>
> >                        <type>jar</type>
> >                    </dependency>
> >                </dependencies>
> >                <configuration>
> >                    <contextRoot>${context.root}</contextRoot>
> >                    <sourceFile>Main.mxml</sourceFile>
> >                    <incremental>true</incremental>
> >                    <debug>true</debug>
> >                    <targetPlayer>10.0.0</targetPlayer>
> >                    <keepAs3Metadatas>
> >                        <keepAs3Metadata>Bindable</keepAs3Metadata>
> >                        <keepAs3Metadata>Managed</keepAs3Metadata>
> >                        <keepAs3Metadata>ChangeEvent</keepAs3Metadata>
> >                        <keepAs3Metadata>NonCommittingChangeEvent</
> > keepAs3Metadata>
> >                        <keepAs3Metadata>Transient</keepAs3Metadata>
> >                        <keepAs3Metadata>Id</keepAs3Metadata>
> >                        <keepAs3Metadata>Version</keepAs3Metadata>
> >                        <keepAs3Metadata>Lazy</keepAs3Metadata>
> >                        <keepAs3Metadata>Name</keepAs3Metadata>
> >                        <keepAs3Metadata>In</keepAs3Metadata>
> >                        <keepAs3Metadata>Out</keepAs3Metadata>
> >                        <keepAs3Metadata>Inject</keepAs3Metadata>
> >                        <keepAs3Metadata>Produces</keepAs3Metadata>
> >                        <keepAs3Metadata>PostConstruct</
> > keepAs3Metadata>
> >                        <keepAs3Metadata>Destroy</keepAs3Metadata>
> >                        <keepAs3Metadata>Observer</keepAs3Metadata>
> >                        <keepAs3Metadata>ManagedEvent</
> > keepAs3Metadata>
> >                    </keepAs3Metadatas>
> >                    <localesCompiled>
> >                        <locale>en_US</locale>
> >                    </localesCompiled>
> > <!--                     This seems to be completely ignored... -->
> > <!--                     <includeStylesheets> -->
> > <!--                         <stylesheet> -->
> > <!--                             <name>styles.css</name> -->
> > <!--                             <path>${basedir}/src/main/resources/
> > styles.css</path> -->
> > <!--                         </stylesheet> -->
> > <!--                     </includeStylesheets> -->
> >                    <fonts>
> >                        <advancedAntiAliasing>true</
> > advancedAntiAliasing>
> >                        <maxCachedFonts>20</maxCachedFonts>
> >                        <maxGlyphsPerFace>1000</maxGlyphsPerFace>
> >                        <managers>
> >                            <manager>flash.fonts.AFEFontManager</
> > manager>
> > <!--
> > <manager>flash.fonts.BatikFontManager</manager>  -->
> > <!--                             <manager>flash.fonts.JREFontManager</
> > manager> -->
> >                        </managers>
> >                    </fonts>
> >                </configuration>
> >            </plugin>
> >        </plugins>
> >    </build>
> > ...
> >
> > --
> > 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/
>



-- 
Best,
Benjamin Petrin

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