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>
>> > > >  <advancedAntiAliasing>true</advancedAntiAliasing>
>> > > >  <flashType>true</flashType>
>> > > >  <languages>
>> > > >    <englishRange>U+0020-U+007E</englishRange>
>> > > >  </languages>
>> > > >  <localFontsSnapshot>${baseDir}/src/main/resources/fonts.ser</
>> > > > localFontsSnapshot>
>> > > >  <managers>
>> > > >    <manager>flash.fonts.BatikFontManager</manager>
>> > > >  </managers>
>> > > >  <maxCachedFonts>20</maxCachedFonts>
>> > > >  <maxGlyphsPerFace>1000</maxGlyphsPerFace>
>> > > > </fonts>
>> >
>> > > > On Dec 12, 3:35 pm, Marvin Froeder <[email protected]> wrote:
>> > > > > Hrmmm, recently I had re-introduced the <font> configuration, to
>> keep it
>> > > > > compatible with FM3... is you are using latest SNAPSHOT that is
>> likely
>> > > > it.
>> >
>> > > > > VELO
>> >
>> > > > > On Sun, Dec 12, 2010 at 11:21 AM, Dani <[email protected]>
>> wrote:
>> > > > > > I've written simple flex application (it just shows a spark
>> Label with
>> > > > > > some text),
>> > > > > > when I compile it with the flexmojos-maven-plugin version
>> 4.0-SNAPHOT
>> > > > > > it renders the text in a different font then I see when I
>> compile and
>> > > > > > run it in flex builder
>> > > > > > (the font I get with flexmojos is a little bit bigger and
>> thicker).
>> >
>> > > > > > when I compile the app with flexmojos-maven-plugin version
>> 4.0-alpha-5
>> > > > > > it works OK (I get the same font as in flex builder
>> compilation).
>> >
>> > > > > > any idea why it acts like that?
>> > > > > > I tried these 2 FAQs but it did fix the issue:
>> > > > > >http://flexmojos.sonatype.org/faq.html#5
>> > > > > >http://flexmojos.sonatype.org/faq.html#6
>> >
>> > > > > > just to clarify, I'm not using embedded fonts.
>> >
>> > > > > > --
>> > > > > > 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]<flex-mojos%[email protected]>
>> <flex-mojos%2bunsubscr...@googlegrou ps.com>
>> > > > <flex-mojos%2bunsubscr...@googlegrou ps.com>
>> > > > > > 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]<flex-mojos%[email protected]>
>> <flex-mojos%2bunsubscr...@googlegrou ps.com>
>> > > > 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]<flex-mojos%[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]<flex-mojos%[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/

Reply via email to