Embedded Fonts Problem
Hi,
I'm trying to emebed some fonts, but I haven't been able to get it working.
I'm using this code in a style sheet:
@11220649-face{
src: url("../assets/fonts/lsans.ttf");
fontFamily: LucidaSansV;
embedAsCFF:true;
}
@11220649-face{
src: url("../assets/fonts/ROCK.TTF");
fontFamily: RockwellV;
embedAsCFF:true;
}
@11220649-face{
src: url("../assets/fonts/times.ttf");
fontFamily: TimesV;
embedAsCFF:true;
}
if I use the fontFamily in Spark labes, it works:
<s:Label text="Some text here" fontSize="40" fontFamily="LucidaSansV" />
<s:Label text="Some text here" fontSize="40" fontFamily="TimesV" />
<s:Label text="Some text here" fontSize="40" fontFamily="RockwellV" />
But if I use it like this, doesn't work either:
var cf:TextLayoutFormat = new TextLayoutFormat();
cf.fontFamily = 'TimesV';
cf.fontLookup = flash.text.engine.FontLookup.EMBEDDED_CFF;
cf.renderingMode = flash.text.engine.RenderingMode.CFF;
Aslo, I've tried using formatted text, like "<p fontSize='32'><span fontFamily='LucidaSansV'>ABCDEFGHIJKLM 18</span></p>" with no luck.
The behaivor should be oposite, if I declare embedAsCFF:true;, I should be ablke to use it in FTE components and embedAsCFF:false with the old MX components. what am I missing?
tks.
