I'm in the process of converting my app to Flexmojos 4.0-RC2 from 3.8 and am having a font issue where my MX controls cannot use my embedded CFF font. I am getting messages like this:
incompatible embedded font 'Myriad' specified for mx.controls::TextInput (myTI) . This component requires that the embedded font be declared with embedAsCff=false. I had this issue previously and have already added the MXFTEText.css file to my project. Within my mainApplication.mxml I have the following stanza: <fx:Style source="com/mycorp/core/flex/client/css/MXFTEText.css" /> This is what fixed it last time. It's essentially the same fix that Christofer has on his excellent wiki here: https://dev.c-ware.de/confluence/display/PUBLIC/Make+MX+Components+work+with+CFF+embedded+Fonts Within my main application I also have: <fx:Style source="com/mycorp/core/flex/client/css/Main.css" /> which defines the fonts as follows: global { font-family: Myriad; font-size: 13; } @font-face { src: url("../../../../../../../resources/fonts/MyriadWebPro.ttf") ; fontFamily: Myriad; embedAsCFF: true; unicodeRange: U+0041-U+005A, /* Upper-Case [A..Z] */ U+0061-U+007A, /* Lower-Case a-z */ U+0030-U+0039, /* Numbers [0..9] */ U+002E-U+002E; /* Period [.] */ } @font-face { src: url("../../../../../../../resources/fonts/MyriadWebPro- Bold.ttf") ; fontFamily: Myriad; fontWeight: bold; embedAsCFF: true; unicodeRange: U+0041-U+005A, /* Upper-Case [A..Z] */ U+0061-U+007A, /* Lower-Case a-z */ U+0030-U+0039, /* Numbers [0..9] */ U+002E-U+002E; /* Period [.] */ My POM is as follows: <plugin> <groupId>org.sonatype.flexmojos</groupId> <artifactId>flexmojos-maven-plugin</artifactId> <!-- Needed for Maven to recognize swf packaging --> <extensions>true</extensions> <configuration> <!-- The main application file --> <sourceFile>com/mycorp/core/flex/client/main/SbeCoreFlexClient.mxml</ sourceFile> <!-- The minimum supported version of the runtime Flash player (should match Flash Builder) --> <targetPlayer>${flex.minimumPlayerVersion}</targetPlayer> <!-- Supported locales (should match Flash Builder) --> <locales> <locale>en_US</locale> </locales> <!-- Needed to provide CFF manager so embedded fonts will work --> <fonts> <advancedAntiAliasing>true</advancedAntiAliasing> <managers> <manager>flash.fonts.CFFFontManager</manager> </managers> </fonts> <!-- Eliminates flexmojos warning about no theme being specified --> <themes> <theme>${project.build.directory}/themes/spark-theme.css</theme> </themes> </configuration> </plugin> I tried adding this to my POM.xml: <theme>${basedir}/src/main/flex/com/sbevision/core/flex/client/css/ MXFTEText.css</theme> but it didn't work. Any clues on why my MXFTEText.css isn't working? -- 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/
