I've seen several problems about fonts in FM 4 reported (http://
groups.google.com/group/flex-mojos/browse_thread/thread/
e8750b5c6f3e998a/9a91c3d47cf7f101,
http://groups.google.com/group/flex-mojos/browse_thread/thread/1319563e5f97565c/bb7564821b2090c1)
-- not sure if this is related...

# mvn -v
Apache Maven 3.0.1 (r1038046; 2010-11-23 05:58:32-0500)
Java version: 1.6.0_20
Java home: /usr/java/jdk1.6.0_20/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "2.6.9-42.elsmp" arch: "i386" Family: "unix"

flexmojo version: 4.0-beta-4 (also tried with 4.0-SNAPSHOT)

flex framework version: 4.1.0.16076

I'm trying to compile a css to a swf.  In the file is the following
section:

@font-face {
   src: url("/fonts/MyriadPro-Regular.otf");
   fontFamily: MyriadPro;
   fontWeight: normal;
   embedAsCFF: false;
}

The error I get is:

Error: exception during transcoding: Font for alias 'MyriadPro' with
plain weight and style was not found at: file:/home/ageery/work/my-css/
src/main/flex/fonts/MyriadPro-Regular.otf

The MyriadPro-Regular.otf file does indeed exist.

Compiling this with FM 3.8 succeeds.

I've seen some things (e.g., http://flexmojos.sonatype.org/faq.html#6)
about specifying the font manager and adding in the flex-fontkit, afe,
aglj* and rideau dependencies, but these did not work for me.

Is there a workaround for the problem in FM 4 or should I go back to
3.8?

Thanks
Andrew

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