Note that there are some explanatory texts on larger screens.

plurals
  1. POSpark item inside mx component won't render embedded font
    primarykey
    data
    text
    <p>I have recently converted a Flex3 AIR project to Flex4, so it now uses Flex4.1 sdk and <code>&lt;s:WindowedApplication&gt;</code>. It is a large project and having painstakingly updated all the vital bits of code to work with Flex4 it now happliy compiles.</p> <p>Most of the components in the project decend over quite a few generations from an mx based component, so I have not yet updated this to spark due to the workload. The problem I am having is that I cannot get the embedded font to work for spark components that I now add to my mx components.</p> <p>For example, I have edited one of my (mx based) components and added some items to it. My embedded font has to have embedAsCFF=false so that it works for my mx components. So to get this to <em>also</em> embed for spark, I should be able to simply embed it again with embedAsCFF=true as shown below:</p> <pre><code>@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; } </code></pre> <p>I have tried a basic example of this that Adobe provides and this example works just fine, but in my complex project, it does not work. I do not get any errors, but instead of the spark component using MyriadWebPro it defaults to Times.</p> <p>I wonder if this is because my component is mx based rather than spark based. Maybe this only works if you are using an mx component inside a spark component? If so does anyone know of a solution to the problem where you have an mx component and want to have a spark Label inside that?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload