flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pio...@apache.org
Subject git commit: [flex-tlf] [refs/heads/develop] - Clean up after removing ARIAL_FONT.swf
Date Sun, 25 Jan 2015 18:58:15 GMT
Repository: flex-tlf
Updated Branches:
  refs/heads/develop ea6a96444 -> 7bb589367


Clean up after removing ARIAL_FONT.swf


Project: http://git-wip-us.apache.org/repos/asf/flex-tlf/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-tlf/commit/7bb58936
Tree: http://git-wip-us.apache.org/repos/asf/flex-tlf/tree/7bb58936
Diff: http://git-wip-us.apache.org/repos/asf/flex-tlf/diff/7bb58936

Branch: refs/heads/develop
Commit: 7bb589367c8e56d2abac3ea4167a491da2963436
Parents: ea6a964
Author: piotrz <piotrzarzycki21@gmail.com>
Authored: Sun Jan 25 19:57:47 2015 +0100
Committer: piotrz <piotrzarzycki21@gmail.com>
Committed: Sun Jan 25 19:57:47 2015 +0100

----------------------------------------------------------------------
 automation_apps/src/VellumUnit.mxml | 32 --------------------------------
 1 file changed, 32 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-tlf/blob/7bb58936/automation_apps/src/VellumUnit.mxml
----------------------------------------------------------------------
diff --git a/automation_apps/src/VellumUnit.mxml b/automation_apps/src/VellumUnit.mxml
index 9f41b3b..0406451 100644
--- a/automation_apps/src/VellumUnit.mxml
+++ b/automation_apps/src/VellumUnit.mxml
@@ -132,35 +132,6 @@
             currentlyUsedMemory = Math.round(System.totalMemory / 1000000);
         }
 
-        /**
-         * Loads Arial font
-         */
-        private function loadEmbeddedFont(baseURL:String):void
-        {
-            var fontLoader:Loader = new Loader();
-            fontLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, handleLoadEmbeddedFont);
-            fontLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, handleLoadEmbeddedFontIOError);
-            fontLoader.load(new URLRequest(LoaderUtil.createAbsoluteURL(baseURL, "../../test/testFiles/assets/ARIAL_FONT.swf")));
-        }
-
-        private function handleLoadEmbeddedFontIOError(evtObj:IOErrorEvent):void
-        {
-            trace("Unable to load Arial Font.");
-        }
-
-
-        private function handleLoadEmbeddedFont(evtObj:Event):void
-        {
-            /*var arialFont:Class = evtObj.target.applicationDomain.getDefinition("Arial_DF4");
-             Font.registerFont(arialFont);
-             var arialFontBlack:Class = evtObj.target.applicationDomain.getDefinition("Arial_Black_DF4");
-             Font.registerFont(arialFontBlack);
-             var arialFontNarrow:Class = evtObj.target.applicationDomain.getDefinition("Arial_Narrow_DF4");
-             Font.registerFont(arialFontNarrow);
-             var arialFontRoundedMTBold:Class = evtObj.target.applicationDomain.getDefinition("Arial_Rounded_MT_Bold_DF4");
-             Font.registerFont(arialFontRoundedMTBold);     */
-        }
-
         private function loadAndRunTests():void
         {
             var config:TestConfig = TestConfig.getInstance();
@@ -381,9 +352,6 @@
                 FileRepository.readFile(normalizedURL, "../../test/testFiles/markup/tlf/"
+ xmlFileNameList[i],
                         onXmlFileListLoadComplete, onXmlFileListError, onXmlFileListSecurityError);
             }
-
-            // Load Arial Font SWF to Embed it in the application.
-            loadEmbeddedFont(normalizedURL);
         }
 
         private function onXmlFileListLoadComplete(event:Event):void


Mime
View raw message