I'm probably missing something. Here's my code:
textFlow = TextConverter.importToFlow( xml, TextConverter.TEXT_LAYOUT_FORMAT);
textFlow.flowComposer = new StandardFlowComposer();
if( editManager == null && undoManager == null){
undoManager = new UndoManager();
editManager = new EditManager( undoManager );
textFlow.interactionManager = editManager;
textFlow.interactionManager.selectRange(0,0);
}
textFlow.flowComposer.updateAllControllers();
-------------------------------------------------------------
I replaced "textFlow.flowComposer.updateAllControllers();" with:
var cf:TextLayoutFormat = new TextLayoutFormat();
cf.fontLookup = flash.text.engine.FontLookup.EMBEDDED_CFF;
IEditManager( textFlow.interactionManager ).applyLeafFormat(cf);
but still get the same result. The font doesn't render correctly after the import.
Try this:
textFlow.interactionManager.selectRange(0, textFlow.textLength);
editManager.applyLeafFormat(cf);
Your previous call to applyLeafFormat will only change the text that was imported if it is selected.
If that still doesn't work, please tell me what you are doing to embed the font.
Thanks!
- robin