flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1369943 - in /incubator/flex/trunk/mustella/tests/Embed: ./ Fonts/ Fonts/SWFs/ Fonts/tests/ Fonts/tests/baselines/
Date Mon, 06 Aug 2012 19:37:03 GMT
Author: pent
Date: Mon Aug  6 19:37:02 2012
New Revision: 1369943

URL: http://svn.apache.org/viewvc?rev=1369943&view=rev
Log:
Mustella submission

Added:
    incubator/flex/trunk/mustella/tests/Embed/
    incubator/flex/trunk/mustella/tests/Embed/Fonts/
    incubator/flex/trunk/mustella/tests/Embed/Fonts/SWFs/
    incubator/flex/trunk/mustella/tests/Embed/Fonts/SWFs/DifferentFonts.mxml
    incubator/flex/trunk/mustella/tests/Embed/Fonts/SWFs/TTCFontStyles.mxml
    incubator/flex/trunk/mustella/tests/Embed/Fonts/tests/
    incubator/flex/trunk/mustella/tests/Embed/Fonts/tests/baselines/
    incubator/flex/trunk/mustella/tests/Embed/Fonts/tests/baselines/differentFonts.png   (with
props)
    incubator/flex/trunk/mustella/tests/Embed/Fonts/tests/baselines/ttcFonts.png   (with props)
    incubator/flex/trunk/mustella/tests/Embed/Fonts/tests/sameFamilyName.mxml
    incubator/flex/trunk/mustella/tests/Embed/Fonts/tests/ttcFontStylesTest.mxml

Added: incubator/flex/trunk/mustella/tests/Embed/Fonts/SWFs/DifferentFonts.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Embed/Fonts/SWFs/DifferentFonts.mxml?rev=1369943&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Embed/Fonts/SWFs/DifferentFonts.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Embed/Fonts/SWFs/DifferentFonts.mxml Mon Aug  6 19:37:02
2012
@@ -0,0 +1,42 @@
+<mx:Application 
+	xmlns:mx="http://www.adobe.com/2006/mxml" 
+	layout="vertical">
+	
+	<mx:Style>
+		@font-face {
+			src: url("../../../../Assets/Fonts/Cousine/Cousine-Bold.ttf");
+			font-family: myFont; 
+			font-weight:bold;	
+			embedAsCFF: false;
+		}
+			
+		@font-face {
+			src: url("../../../../Assets/Fonts/Lobster_Two/LobsterTwo-Regular.ttf");
+			font-family: myFont;
+			
+			embedAsCFF: false;
+		}
+		
+		.myFontDescriptor
+		{
+			font-family: myFont;
+			font-size:36;
+			fontLookup: embeddedCFF;
+			fontAntiAliasType: normal;
+		}
+		global{
+			kerning: "off";
+    		}
+	</mx:Style>
+	
+	<mx:Text id="textId" width="100%" height="100%" condenseWhite="true" styleName="myFontDescriptor">
+		<mx:htmlText >
+			<![CDATA[
+				This should be displayed using the second font.<br/> 
+				<b>This should be displayed using the first font</b> 			
+			]]>
+		</mx:htmlText>
+	</mx:Text>
+	
+	<mx:Button rotation="+1" label="Halo Button" styleName="myFontDescriptor" /> 
+</mx:Application>

Added: incubator/flex/trunk/mustella/tests/Embed/Fonts/SWFs/TTCFontStyles.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Embed/Fonts/SWFs/TTCFontStyles.mxml?rev=1369943&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Embed/Fonts/SWFs/TTCFontStyles.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Embed/Fonts/SWFs/TTCFontStyles.mxml Mon Aug  6 19:37:02
2012
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"
backgroundColor="#FFFFFF" height="600"   width="800">
+	<fx:Style>
+		@namespace s "library://ns.adobe.com/flex/spark";
+		
+		@font-face
+		{
+			fontFamily: "Open_Sans";
+			src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+			embedAsCFF: true;
+		}
+		@font-face
+		{
+			fontFamily: "PT_Serif";
+			fontWeight: bold;
+			src: url("../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Bold.ttf");
+			embedAsCFF: true;
+		}
+	</fx:Style>
+	<fx:DesignLayer >
+		<s:VGroup id="ttcGroup">
+			<s:RichText color="#2B4381" fontFamily="Open_Sans" fontSize="36" maxWidth="2400" tabStops="S0
S50 S100 S150 S200" text="OpenSans-Regular" x="87" y="71"/>
+			<s:RichText color="#2B4381" fontFamily="PT_Serif" fontSize="36" maxWidth="2400" tabStops="S0
S50 S100 S150 S200" text="PT_Serif-Web-Bold" x="87" y="141" fontWeight="bold"/>
+		</s:VGroup>
+	</fx:DesignLayer>
+</s:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/Embed/Fonts/tests/baselines/differentFonts.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Embed/Fonts/tests/baselines/differentFonts.png?rev=1369943&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Embed/Fonts/tests/baselines/differentFonts.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Embed/Fonts/tests/baselines/ttcFonts.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Embed/Fonts/tests/baselines/ttcFonts.png?rev=1369943&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Embed/Fonts/tests/baselines/ttcFonts.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Embed/Fonts/tests/sameFamilyName.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Embed/Fonts/tests/sameFamilyName.mxml?rev=1369943&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Embed/Fonts/tests/sameFamilyName.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Embed/Fonts/tests/sameFamilyName.mxml Mon Aug  6 19:37:02
2012
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester testDir="Embed/Fonts/tests/"  xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns="*"
testSWF="DifferentFonts.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<fx:Script>
+	<![CDATA[
+		public static function init(o:DisplayObject):void
+		{
+		}
+		]]>
+	</fx:Script>
+
+	<fx:Metadata>
+		<![CDATA[
+		[Mixin]
+	]]>
+	</fx:Metadata>
+	<!-- end of set of lines that must be in each unit test -->
+
+	<testCases>
+		<TestCase testID="differentFonts" keywords="[Fonts]" description="Test for font embeded
with same family name but different font weight" >
+		    <setup>
+			<Pause timeout="1000" />
+		    </setup>
+
+		    <body>		
+			<CompareBitmap numColorVariances="2" ignoreMaxColorVariance="true" url="../tests/baselines/$testID.png"
target="textId" />
+		    </body>
+		</TestCase>
+	</testCases>
+
+</UnitTester>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/Embed/Fonts/tests/ttcFontStylesTest.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Embed/Fonts/tests/ttcFontStylesTest.mxml?rev=1369943&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Embed/Fonts/tests/ttcFontStylesTest.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Embed/Fonts/tests/ttcFontStylesTest.mxml Mon Aug 
6 19:37:02 2012
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester testDir="Embed/Fonts/tests/"  xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns="*"
testSWF="TTCFontStyles.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<fx:Script>
+	<![CDATA[
+		public static function init(o:DisplayObject):void
+		{
+		}
+		]]>
+	</fx:Script>
+
+	<fx:Metadata>
+		<![CDATA[
+		[Mixin]
+	]]>
+	</fx:Metadata>
+	<!-- end of set of lines that must be in each unit test -->
+
+	<testCases>
+		<TestCase testID="ttcFonts" keywords="[Fonts]" description="Test for font embeded using
true type collection and without the full font name" >
+		    <body>		
+			<CompareBitmap numColorVariances="7" ignoreMaxColorVariance="true" url="../tests/baselines/$testID.png"
target="ttcGroup" />
+		    </body>
+		</TestCase>
+	</testCases>
+
+</UnitTester>
\ No newline at end of file



Mime
View raw message