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+fonts
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/WS2db454920e96a9e51e63e3d11c0bf69084-7e09.html > > > > 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.0 http://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> > </resources> > </configuration> > </execution> > </executions> > </plugin> > </plugins> > </build> > > <dependencies> > <dependency> > <groupId>com.adobe.flex.framework</groupId> > <artifactId>flex-framework</artifactId> > <version>4.5.1.21328</version> > <type>pom</type> > </dependency> > <dependency> > <groupId>org.spicefactory</groupId> > <artifactId>parsley-flex4</artifactId> > <version>2.4.0</version> > <type>swc</type> > </dependency> > <dependency> > <groupId>org.spicefactory</groupId> > <artifactId>spicelib-core</artifactId> > <version>2.4.0</version> > <type>swc</type> > </dependency> > <dependency> > <groupId>org.spicefactory</groupId> > <artifactId>spicelib-flash-support</artifactId> > <version>2.4.0</version> > <type>swc</type> > </dependency> > <dependency> > <groupId>org.spicefactory</groupId> > <artifactId>spicelib-reflect</artifactId> > <version>2.4.0</version> > <type>swc</type> > </dependency> > <dependency> > <groupId>org.spicefactory</groupId> > <artifactId>spicelib-task</artifactId> > <version>2.4.0</version> > <type>swc</type> > </dependency> > <dependency> > <groupId>org.spicefactory</groupId> > <artifactId>spicelib-xml</artifactId> > <version>2.4.0</version> > <type>swc</type> > </dependency> > <dependency> > <groupId>com.adobe.lcds</groupId> > <artifactId>fiber</artifactId> > <version>4.5.1.313231</version> > <type>swc</type> > </dependency> > <dependency> > <groupId>com.adobe.lcds</groupId> > <artifactId>fiber_rb</artifactId> > <version>4.5.1.313231</version> > <type>swc</type> > </dependency> > <dependency> > <groupId>com.adobe.lcds</groupId> > <artifactId>serializers</artifactId> > <version>4.5.1.313231</version> > <type>swc</type> > </dependency> > <dependency> > <groupId>com.adobe.lcds</groupId> > <artifactId>serializers_rb</artifactId> > <version>4.5.1.313231</version> > <type>swc</type> > </dependency> > <dependency> > <groupId>com.adobe</groupId> > <artifactId>FlexUnit</artifactId> > <version>0.9</version> > <type>swc</type> > </dependency> > <dependency> > <groupId>com.cognifit</groupId> > <artifactId>cognifitTaskLib</artifactId> > <version>1.3</version> > <type>swc</type> > </dependency> > <dependency> > <groupId>com.cognifit</groupId> > <artifactId>cognifitSocialFlexCharts</artifactId> > <version>1.25</version> > <type>swc</type> > </dependency> > <dependency> > <groupId>com.adobe.flex.framework</groupId> > <artifactId>halo</artifactId> > <version>4.6.b.23201</version> > <type>swc</type> > </dependency> > <dependency> > <groupId>com.google</groupId> > <artifactId>analytics</artifactId> > <version>1.0.1.319</version> > <type>swc</type> > </dependency> > <dependency> > <groupId>com.google</groupId> > <artifactId>analytics_flash</artifactId> > <version>1.0.1.319</version> > <type>swc</type> > </dependency> > <dependency> > <groupId>com.facebook</groupId> > <artifactId>GraphAPIWeb</artifactId> > <version>1.8.1</version> > <type>swc</type> > </dependency> > </dependencies> > </project> > > (If I use SDK version 4.6.b.23201 the result is the same, it doesn't > work) > > Previous pom.xml that is 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.0 http://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>3.9</version> > <extensions>true</extensions> > <configuration> > > <sourceFile>CpcSocialFlex.mxml</sourceFile> > > <configFile>.settings/flex-config.xml</configFile> > <targetPlayer>10.2.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> > </resources> > </configuration> > </execution> > </executions> > </plugin> > </plugins> > </build> > > <dependencies> > <dependency> > <groupId>com.adobe.flex.framework</groupId> > <artifactId>flex-framework</artifactId> > <version>4.5.1.21328</version> > <type>pom</type> > </dependency> > <dependency> > <groupId>org.spicefactory</groupId> > <artifactId>parsley-flex4</artifactId> > <version>2.4.0</version> > <type>swc</type> > </dependency> > <dependency> > <groupId>org.spicefactory</groupId> > <artifactId>spicelib-core</artifactId> > <version>2.4.0</version> > <type>swc</type> > </dependency> > <dependency> > <groupId>org.spicefactory</groupId> > <artifactId>spicelib-flash-support</artifactId> > <version>2.4.0</version> > <type>swc</type> > </dependency> > <dependency> > <groupId>org.spicefactory</groupId> > <artifactId>spicelib-reflect</artifactId> > <version>2.4.0</version> > <type>swc</type> > </dependency> > <dependency> > <groupId>org.spicefactory</groupId> > <artifactId>spicelib-task</artifactId> > <version>2.4.0</version> > <type>swc</type> > </dependency> > <dependency> > <groupId>org.spicefactory</groupId> > <artifactId>spicelib-xml</artifactId> > <version>2.4.0</version> > <type>swc</type> > </dependency> > <dependency> > <groupId>com.adobe.lcds</groupId> > <artifactId>fiber</artifactId> > <version>4.5.1.313231</version> > <type>swc</type> > </dependency> > <dependency> > <groupId>com.adobe.lcds</groupId> > <artifactId>fiber_rb</artifactId> > <version>4.5.1.313231</version> > <type>swc</type> > </dependency> > <dependency> > <groupId>com.adobe.lcds</groupId> > <artifactId>serializers</artifactId> > <version>4.5.1.313231</version> > <type>swc</type> > </dependency> > <dependency> > <groupId>com.adobe.lcds</groupId> > <artifactId>serializers_rb</artifactId> > <version>4.5.1.313231</version> > <type>swc</type> > </dependency> > <dependency> > <groupId>com.adobe</groupId> > <artifactId>FlexUnit</artifactId> > <version>0.9</version> > <type>swc</type> > </dependency> > <dependency> > <groupId>com.cognifit</groupId> > <artifactId>cognifitTaskLib</artifactId> > <version>1.3</version> > <type>swc</type> > </dependency> > <dependency> > <groupId>com.cognifit</groupId> > <artifactId>cognifitSocialFlexCharts</artifactId> > <version>1.25</version> > <type>swc</type> > </dependency> > <dependency> > <groupId>com.adobe.flex.framework</groupId> > <artifactId>halo</artifactId> > <version>4.5.1.313231</version> > <type>swc</type> > </dependency> > <dependency> > <groupId>com.google</groupId> > <artifactId>analytics</artifactId> > <version>1.0.1.319</version> > <type>swc</type> > </dependency> > <dependency> > <groupId>com.google</groupId> > <artifactId>analytics_flash</artifactId> > <version>1.0.1.319</version> > <type>swc</type> > </dependency> > <dependency> > <groupId>com.facebook</groupId> > <artifactId>GraphAPIWeb</artifactId> > <version>1.8.1</version> > <type>swc</type> > </dependency> > </dependencies> > </project> > > Thanks a lot for your help! > > -- > 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/ -- 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/
