I recently converted a Flex3 AIR project to Flex4, so now it uses Flex4.1 sdk and <s:WindowedApplication>. This is a large project and painstakingly updated all the vital bits of code for working with Flex4, which is now happliy compiled.
Most of the components in the project are divided into quite a few generations of the mx-based component, so I have not updated this yet to spark due to the workload. The problem I am facing is that I cannot get the inline font to work for the spark components that I now add to my mx components.
For example, I edited one of my (based on mx) components and added some elements to it. My inline font must have embedAsCFF = false in order for it to work for my mx components. Therefore, to make it embed in a spark, I just have to embed it again with embedAsCFF = true, as shown below:
@font-face
{
src: url("assets/fonts/MyriadWebPro.ttf");
font-family: mainWithCFF;
font-style: normal;
font-weight: normal;
font-anti-alias-type: "advanced";
embedAsCFF: true;
}
s|Label{
font-family: mainWithCFF;
}
I tried the basic example of this that Adobe offers, and this example works fine, but it does not work in my complex project. I get no errors, but instead of the spark component using MyriadWebPro, Times is used by default.
, , mx, . , , mx ? , - , mx , ?