guys this issue is really critical for me, any help is appreciated
(currently I'm not embedding my fonts and I would like to keep my app
that way)

On Dec 13, 11:42 am, Dani <[email protected]> wrote:
> I tried what Bryan suggested:
> I added the flexmojos plugins dependencies and installed the required
> artifacts to my local repository.
> now my pom looks like this, but unfortunately it didn't help
>
> <?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.0http://maven.apache.org/maven-v4_0_0.xsd";>
>   <modelVersion>4.0.0</modelVersion>
>
>   <groupId>com.blabla</groupId>
>   <artifactId>TestFont</artifactId>
>   <version>1.0-SNAPSHOT</version>
>   <packaging>swf</packaging>
>
>   <name>TestFont App</name>
>
>   <properties>
>         <flex.sdk.version>4.5.0.17077</flex.sdk.version>
>         <flexmojos.version>4.0-beta-3</flexmojos.version>
>   </properties>
>
>   <build>
>     <sourceDirectory>src</sourceDirectory>
>     <plugins>
>       <plugin>
>         <groupId>org.sonatype.flexmojos</groupId>
>         <artifactId>flexmojos-maven-plugin</artifactId>
>         <version>${flexmojos.version}</version>
>                 <dependencies>
>                   <dependency>
>                     <groupId>com.adobe.flex</groupId>
>                     <artifactId>afe</artifactId>
>                     <version>${flex.sdk.version}</version>
>                   </dependency>
>                   <dependency>
>                     <groupId>com.adobe.flex</groupId>
>                     <artifactId>aglj40</artifactId>
>                     <version>${flex.sdk.version}</version>
>                   </dependency>
>                   <dependency>
>                     <groupId>com.adobe.flex</groupId>
>                     <artifactId>flex-fontkit</artifactId>
>                     <version>${flex.sdk.version}</version>
>                   </dependency>
>                   <dependency>
>                     <groupId>com.adobe.flex</groupId>
>                     <artifactId>rideau</artifactId>
>                     <version>${flex.sdk.version}</version>
>                   </dependency>
>                   <dependency>
>                     <groupId>com.adobe.flex</groupId>
>                     <artifactId>compiler</artifactId>
>                     <version>${flex.sdk.version}</version>
>                     <type>pom</type>
>                   </dependency>
>                   <dependency>
>                     <groupId>com.adobe.flex.compiler</groupId>
>                     <artifactId>xmlParserAPIs</artifactId>
>                     <version>${flex.sdk.version}</version>
>                   </dependency>
>         </dependencies>
>         <extensions>true</extensions>
>         <configuration>
>                         
> <localFontsSnapshot>C:/work/flex/sdks/4.5.0.17077/frameworks/
> localFonts.ser</localFontsSnapshot>
>                         <managers>
>                     <manager>flash.fonts.JREFontManager</manager>
>                     <manager>flash.fonts.BatikFontManager</manager>
>                     <manager>flash.fonts.AFEFontManager</manager>
>                     <manager>flash.fonts.CFFFontManager</manager>
>                         </managers>
>                 </configuration>
>       </plugin>
>     </plugins>
>   </build>
>
>   <dependencies>
>
>     <dependency>
>       <groupId>com.adobe.flex.framework</groupId>
>       <artifactId>flex-framework</artifactId>
>       <version>${flex.sdk.version}</version>
>       <type>pom</type>
>     </dependency>
>   </dependencies>
> </project>
>
> I also compared the dump config from flex builder with the config
> output of flexmojos and they seem identical in the font part,
> both of them have these entries
>
>          <!-- compiler.fonts.local-fonts-snapshot: File containing
> system font data produced by flex2.tools.FontSnapshot.-->
>          <local-fonts-snapshot>${flexlib}/localFonts.ser</local-fonts-
> snapshot>
>          <!-- compiler.fonts.managers: Compiler font manager classes,
> in policy resolution order-->
>          <managers>
>             <manager-class>flash.fonts.JREFontManager</manager-class>
>             <manager-class>flash.fonts.BatikFontManager</manager-
> class>
>             <manager-class>flash.fonts.AFEFontManager</manager-class>
>             <manager-class>flash.fonts.CFFFontManager</manager-class>
>          </managers>
>
> any ideas on how to proceed?
>
> On Dec 13, 8:12 am, Bryan Turner <[email protected]> wrote:
>
>
>
>
>
>
>
> > As an aside, FlexMojos can dump a config-report with options it used. You
> > can also tell FlexBuilder/FlashBuilder to do the same thing. Enabling this
> > would probably really help you in terms of finding the problem, or giving
> > VELO and the other people on the distribution the insight they need to be
> > more helpful.
>
> > On Sun, Dec 12, 2010 at 10:11 PM, Bryan Turner <[email protected]>wrote:
>
> > > We had an issue with our font rendering in our application as well. We
> > > added the following configuration for FlexMojos and it went away:
> > > <fonts>
> > >   <managers>
> > >     <manager>flash.fonts.JREFontManager</manager>
> > >     <manager>flash.fonts.AFEFontManager</manager>
> > >     <manager>flash.fonts.BatikFontManager</manager>
> > >   </managers>
> > > </fonts>
>
> > > You may also need to make sure you have the additional <dependencies> on
> > > the FlexMojos plugin (not on your module itself) for enabling all of the
> > > font managers. The dependencies for 5 of these are not uploaded to the
> > > FlexMojos Nexus repository. I'm pretty sure there's something in the wiki
> > > that documents them all. Our <dependencies> section under the FlexMojos
> > > <plugin> section looks like this:
> > > <dependencies>
> > >   <dependency>
> > >     <groupId>com.adobe.flex</groupId>
> > >     <artifactId>afe</artifactId>
> > >     <version>${flex.sdk.version}</version>
> > >   </dependency>
> > >   <dependency>
> > >     <groupId>com.adobe.flex</groupId>
> > >     <artifactId>aglj32</artifactId>
> > >     <version>${flex.sdk.version}</version>
> > >   </dependency>
> > >   <dependency>
> > >     <groupId>com.adobe.flex</groupId>
> > >     <artifactId>compiler</artifactId>
> > >     <version>${flex.sdk.version}</version>
> > >     <type>pom</type>
> > >   </dependency>
> > >   <dependency>
> > >     <groupId>com.adobe.flex</groupId>
> > >     <artifactId>flex-fontkit</artifactId>
> > >     <version>${flex.sdk.version}</version>
> > >   </dependency>
> > >   <dependency>
> > >     <groupId>com.adobe.flex</groupId>
> > >     <artifactId>license</artifactId>
> > >     <version>${flex.sdk.version}</version>
> > >   </dependency>
> > >   <dependency>
> > >     <groupId>com.adobe.flex</groupId>
> > >     <artifactId>rideau</artifactId>
> > >     <version>${flex.sdk.version}</version>
> > >   </dependency>
> > >   <dependency>
> > >     <groupId>com.adobe.flex.compiler</groupId>
> > >     <artifactId>asdoc</artifactId>
> > >     <version>${flex.sdk.version}</version>
> > >     <type>zip</type>
> > >     <classifier>template</classifier>
> > >   </dependency>
> > >   <dependency>
> > >     <groupId>com.adobe.flex.compiler</groupId>
> > >     <artifactId>xmlParserAPIs</artifactId>
> > >     <version>${flex.sdk.version}</version>
> > >   </dependency>
> > > </dependencies>
>
> > > Our FlexMojos version is 3.8 and our Flex is 4.1.0.16076. Your mileage may
> > > vary, but this is what worked for us.
>
> > > On Sun, Dec 12, 2010 at 1:51 PM, Marvin Froeder <[email protected]> wrote:
>
> > >> If you have any information related to the problem, sure, but just
> > >> flexbuilder swf is different from flexmojos swf won't lead anywhere.
>
> > >> VELO
>
> > >> On Sun, Dec 12, 2010 at 7:08 PM, Dani <[email protected]> wrote:
>
> > >>> do I need to open a JIRA on this? or am I doing something wrong?
>
> > >>> On Dec 12, 4:05 pm, Dani <[email protected]> wrote:
> > >>> > tried this pom, didn't help:
>
> > >>> > <?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.0http://maven.apache.org/maven-v4_0_0.xsd";>
> > >>> >   <modelVersion>4.0.0</modelVersion>
>
> > >>> >   <groupId>com.blabla</groupId>
> > >>> >   <artifactId>TestFont</artifactId>
> > >>> >   <version>1.0-SNAPSHOT</version>
> > >>> >   <packaging>swf</packaging>
>
> > >>> >   <name>TestFont App</name>
>
> > >>> >   <properties>
> > >>> >         <flex.sdk.version>4.5.0.17077</flex.sdk.version>
> > >>> >         <flexmojos.version>4.0-SNAPSHOT</flexmojos.version>
> > >>> >   </properties>
>
> > >>> >   <build>
> > >>> >     <sourceDirectory>src</sourceDirectory>
> > >>> >     <plugins>
> > >>> >       <plugin>
> > >>> >         <groupId>org.sonatype.flexmojos</groupId>
> > >>> >         <artifactId>flexmojos-maven-plugin</artifactId>
> > >>> >         <version>${flexmojos.version}</version>
> > >>> >                 <dependencies>
> > >>> >           <dependency>
> > >>> >             <groupId>com.adobe.flex</groupId>
> > >>> >             <artifactId>compiler</artifactId>
> > >>> >             <version>${flex.sdk.version}</version>
> > >>> >             <type>pom</type>
> > >>> >           </dependency>
> > >>> >         </dependencies>
> > >>> >         <extensions>true</extensions>
> > >>> >         <configuration>
> > >>> >            <fonts>
>
> > >>>  <localFontsSnapshot>C:/work/flex/sdks/4.5.0.17077/frameworks/
> > >>> > localFonts.ser</localFontsSnapshot>
> > >>> >            </fonts>
> > >>> >          </configuration>
> > >>> >       </plugin>
> > >>> >     </plugins>
> > >>> >   </build>
>
> > >>> >   <dependencies>
>
> > >>> >     <dependency>
> > >>> >       <groupId>com.adobe.flex.framework</groupId>
> > >>> >       <artifactId>flex-framework</artifactId>
> > >>> >       <version>${flex.sdk.version}</version>
> > >>> >       <type>pom</type>
> > >>> >     </dependency>
>
> > >>> >   </dependencies>
>
> > >>> > </project>
>
> > >>> > On Dec 12, 3:56 pm, Marvin Froeder <[email protected]> wrote:
>
> > >>> > > Try it....
>
> > >>> > > On Sun, Dec 12, 2010 at 11:53 AM, Dani <[email protected]> wrote:
> > >>> > > > yes, I'm using the latest snapshot.
>
> > >>> > > > I didn't use FM3, just started now with FM4,
> > >>> > > > so in order to solve this issue do I need to use these tags now?
> > >>> > > > and point the localFontsSnapshot to the fonts.ser file in my flex
> > >>> sdk?
>
> > >>> > > > <fonts>
>
> ...
>
> read more »

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