I had similar problems. The main trick is that the fb autimaticalky impirts a css file setting up spark to correctky use cff fonts. Have a look at this tutorial. Mabe it helps: http://dev.c-ware.de/confluence/display/PUBLIC/Embedding+%28CFF%29+fonts
Chris Am 19.07.2011 09:25 schrieb "Jose Ignacio Hita Barraza" < [email protected]>: > Hi all, > > I have a problem with the fonts in my project compiling with Flex > Mojos. Basically, I have declared two fonts in the CSS file, one > embedAsCFF for spark components and other not embedAsCFF for mx > components, this is the CSS file: > > /* CSS file */ > @namespace s "library://ns.adobe.com/flex/spark"; > @namespace mx "library://ns.adobe.com/flex/mx"; > > @font-face > { > src: url("media/fonts/FuturaMaxiBook.ttf"); > font-family: FuturaMaxiBookCFF; > embedAsCFF: true; > } > @font-face > { > src: url("media/fonts/FuturaMaxiBook.ttf"); > font-family: FuturaMaxiBook; > embedAsCFF: false; > } > > s|Label > { > font-family: FuturaMaxiBookCFF; > } > > mx|Text > { > font-family: FuturaMaxiBook; > } > > Compiling this with Flash Builder is OK and the font is correctly > displayed in both types of components (spark and mx), but with Flex > Mojos, the spark components are not taking the font as expected. Is > there something I should do? I have see other threads in this groups > and I have read the FAQ but no luck with this. > > Thanks a lot. > > -- > 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/
