how to embed?!
I don't seem to be able to use the embeded fonts! this is how I'm doing it:
in my document class I'm embeding the font like this:
[Embed(source="assets/tahoma.ttf", fontFamily="Tahoma", mimeType="application/x-font-truetype")]
private var tahoma:Class;
and then I registered the font in the constructor:
Font.registerFont(tahoma);
it seems to be embeded because the SWF file increases... now I create my textFlow:
_textFlow = new TextFlow();
_textFlow.fontFamily = "Tahoma";
_textFlow.fontSize = 13;
_textFlow.color = 0x000000;
_textFlow.fontLookup = FontLookup.EMBEDDED_CFF;
_textFlow.renderingMode = RenderingMode.CFF;
_paragraph = new ParagraphElement();
_textFlow.addChild(_paragraph);
_span = new SpanElement();
_span.text = _label.value;
_paragraph.addChild(_span);
_txtContainerController = new ContainerController(_myLabel, NaN, NaN);
_textFlow.flowComposer.addController(_txtContainerController);
_textFlow.flowComposer.updateAllControllers();
-----------------
I beleive those two highlighted lines are actually responsible for embeding the font? yes? but this is not working for me. any idea why? thanks.
