Graphics Flex



    xmlns:mx="library://ns.adobe.com/flex/mx"
    xmlns:s="library://ns.adobe.com/flex/spark"
    creationComplete="determineIfFontFaceIsEmbedded()">
    
        
    

    
        @font-face { 
           src: url("a.ttf"); 
           fontFamily: myPlainFont;
           embedAsCFF: true; 
        } 
        .myStyle1 { 
           fontFamily: myPlainFont;
           fontSize:12pt;
        }
    

     
        import mx.managers.SystemManager; 
        import mx.core.FlexGlobals; 
        import flash.text.TextFormat; 
        [Bindable] 
        private var b1:Boolean; 
        [Bindable] 
        private var b2:Boolean; 
        public function determineIfFontFaceIsEmbedded():void { 
            var tf1:TextFormat = new TextFormat(); 
            tf1.font = "myPlainFont"; 
            var tf2:TextFormat = new TextFormat(); 
            tf2.font = "Arial"; 
            b1 = FlexGlobals.topLevelApplication.systemManager.isFontFaceEmbedded(tf1); 
            b2 = FlexGlobals.topLevelApplication.systemManager.isFontFaceEmbedded(tf2); 
        }