Hi,
I am currently trying to switch from FM3.7.1 to FM4-SNAPSHOT as I was
getting NPE in the GeneratorMojo with beta3 and I wanted to invetigate that
problem ... found out that it seems to be solved.
After migrating my FM config in my poms, I managed to build my project ...
allmost.
The last project in my build is a Skinning-SWF with a CSS file as main. In
this CSS I embedd some fonts. The first thing I noticed, is that FM no
longer seems to look in the resources directories. I have my fonts in
/src/main/resources ... the only way to convince the compiler to compile my
SWF was to change the paths form /assets/fonts/HypatiaSansPro-Semibold.otf
to ../resources/assets/fonts/HypatiaSansPro-Semibold.otf ... this is sort of
ugly. But unfortunately this didn't do the job. At least the compiler now
finds the files, but It complains about my "otf"-Fonts.
@font-face {
src:
url("../resources/assets/fonts/HypatiaSansPro-Semibold.otf");
font-family: "MainFont";
font-weight: normal;
advanced-anti-aliasing: true;
embedAsCFF: true;
}
results in the following errors:
E:\Projekte\Electronic-Emotions\trunk\modules\electronic-emotions\skins\thesurface\src\main\flex\SkinMain.css(18):
Error: exception during transcoding: Font for alias 'MainFont' with plain
weight and style was not found at:
file:/E:/Projekte/Electronic-Emotions/trunk/modules/electronic-emotions/skins/thesurface/src/main/resources/assets/fonts/HypatiaSansPro-Semibold.otf
src:
url("../resources/assets/fonts/HypatiaSansPro-Semibold.otf");
E:\Projekte\Electronic-Emotions\trunk\modules\electronic-emotions\skins\thesurface\src\main\flex\SkinMain.css(18):
Error: unable to build font 'MainFont'
src:
url("../resources/assets/fonts/HypatiaSansPro-Semibold.otf");
E:\Projekte\Electronic-Emotions\trunk\modules\electronic-emotions\skins\thesurface\src\main\flex\SkinMain.css(18):
Error: Unable to transcode
E:/Projekte/Electronic-Emotions/trunk/modules/electronic-emotions/skins/thesurface/src/main/resources/assets/fonts/HypatiaSansPro-Semibold.otf.
What am I doing wrong? And would it be possible to respect the resources
settings in the pom.xml as FM does with all other elements?
Chris
--
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/