Hi David, Could you please post which controlls actually don't work with CFF Fonts? I would update the wiki with a note about that.
Chris 2011/10/28 David Vree <[email protected]>: > FWIW - I ran a visual test to compare the CFF font manager and the > Batik font manager (non-CFF). Could not tell the difference... > > On Oct 28, 12:11 am, David Vree <[email protected]> wrote: >> Turns out the answer had nothing to do with Flexmojos. Apparently, >> only *some* of the mx controls are able to be dealt with in >> MXFTEText.css. >> >> Others, in particular the ones with Spark equivalents, need to have >> either a non CFF version of the font embedded, or you need to switch >> to the spark version of them. Other controls that aren't in >> MXFTEText.css and don't have spark equivelants, need yet another work- >> around. For once, Adobe has decent documentation on the subject here: >> >> http://help.adobe.com/en_US/flex/using/WSda78ed3a750d6b8f-26a13bbf123... >> >> On Oct 27, 10:19 pm, David Vree <[email protected]> wrote: >> >> >> >> >> >> >> >> > 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+wo... >> >> > 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/ > -- 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/
