Hi guys,

Thanks for your replies, I added the
flash.fonts.CFFFontManager
and now is working, seems that is solved, great!

On 19 mayo, 17:21, Christofer Dutz <[email protected]>
wrote:
> You actually only need the CFFFont manager.
> I wrote down a short tutorial here 
> ...https://dev.c-ware.de/confluence/display/PUBLIC/Embedding+%28CFF%29+f...
>
> Chris
>
> 2012/5/18  <[email protected]>:
>
>
>
>
>
>
>
> > Hi,
> > once I've run in a similar problem.
>
> > I solved it by explicitly setting the font managers to use (even if they 
> > are the same as the default should be).
>
> > Try to add this to your <configuration> section:
>
> > <fonts>
> >  <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>
> > </fonts>
>
> > See 
> > also:http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0b...
>
> > Mit freundlichen Grüßen / Best regards
>
> > Christian Schmid
>
> > Bosch Software Innovations GmbH
> > INST/PRV-DL
> > Ziegelei 7
> > 88090 Immenstaad
> > GERMANY
> >www.bosch-si.de
>
> > Tel. +49 7545 202-370
> > Fax +49 7545 202-301
> > [email protected]
>
> > Registered office: Immenstaad, Register court: Amtsgericht Ulm, HRB 631888;
> > Executives: Heinz Derenbach; Thomas Cotic, Erica Fölsche, Klaus Hüftle, 
> > Thomas Schmid
>
> > This message may contain confidential and privileged information. any 
> > unauthorized review, use, disclosure or distribution is prohibited.
> > If you are not the intended recipient, please inform us immediately and 
> > destroy this message including all copies thereof.
>
> > -----Ursprüngliche Nachricht-----
> > Von: [email protected] [mailto:[email protected]] Im 
> > Auftrag von Jose Ignacio Hita Barraza
> > Gesendet: Freitag, 18. Mai 2012 13:02
> > An: Flex Mojos
> > Betreff: [flex-mojos] Problem with fonts using FlexMojos 4
>
> > 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.0http://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>
> >
>
> ...
>
> leer más »

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