I'm trying to create a .swc file containing my .css file along with all its
images. To do this, I'm using something like this:
compc -include-stylesheet style.css path/to/style.css -include-file style.css
path/to/style.css -compiler.source-path path/to -o style.swc
This works fine for all my css except the one that has an embedded font in it
(using @font-face). When this one compiles, I crash compc:
java.lang.NullPointerException
at java.util.TreeMap.compare(TreeMap.java:1085)
at java.util.TreeMap.put(TreeMap.java:463)
at java.util.AbstractMap.putAll(AbstractMap.java:316)
at java.util.TreeMap.putAll(TreeMap.java:327)
at flex2.compiler.swc.API.exportSwc(API.java:175)
at flex2.tools.Compc.compc(Compc.java:269)
at flex2.tools.Compc.main(Compc.java:44)
I've tried this on Linux and Windows, with JDK 1.4.x and 1.6.x as well as Flex
SDK 3.3 and 4.0 beta. All with the same result.
I've logged the bug with Adobe, but meanwhile, is there another way of doing
this where I can include embedded fonts? We use to use <mx:Style> but we need
to support multiple styles, so it's not a valid solution. We also tried
dynamically loading the styles, but that causes other problems (delays at
runtime, base style being visible through the dynamically loaded one, etc).
Thanks for any help.