 import text.container.IContainerController;
 import text.edit.EditManager;
 import text.edit.ISelectionManager;
-import text.edit.SelectionState;
 import text.elements.FlowElement;
 import text.elements.ParagraphElement;
 import text.elements.SpanElement;

    private function calculateFontMetrics():void
    {
        var fontDescription:FontDescription = new FontDescription();
        fontDescription.fontName = fontFamily;
        
        var elementFormat:ElementFormat = new ElementFormat();
        elementFormat.fontDescription = fontDescription;
        elementFormat.fontSize = fontSize;
        
        var textElement:TextElement = new TextElement();
        textElement.elementFormat = elementFormat;

import flash.events.Event;
import flash.text.engine.ElementFormat;
import flash.text.engine.FontDescription;
import flash.text.engine.TextBlock;
import flash.text.engine.TextElement;
import flash.text.engine.TextLine;
