blob: 974128294b13a0f5e7a7185c178c6118ba412b22 [file]
<?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.
-->
<mx:Module
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
layout="vertical" width="400" height="300"
backgroundColor="0x999999">
<fx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";
@font-face {
src: url("../../../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Regular.ttf");
fontFamily: EmbeddedArial;
embedAsCFF: true;
}
@font-face {
src: url("../../../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Bold.ttf");
fontWeight: bold;
fontFamily: EmbeddedArial;
embedAsCFF: true;
}
@font-face {
src: url("../../../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Italic.ttf");
fontStyle: italic;
fontFamily: EmbeddedArial;
embedAsCFF: true;
}
@font-face {
src: url("../../../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
fontFamily: EmbeddedVerdana;
embedAsCFF: true;
}
@font-face {
src: url("../../../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
fontWeight: bold;
fontFamily: EmbeddedVerdana;
embedAsCFF: true;
}
@font-face {
src: url("../../../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
fontStyle: italic;
fontFamily: EmbeddedVerdana;
embedAsCFF: true;
}
@font-face {
src: url("../../../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
fontFamily: EmbeddedVerdanaHalo;
embedAsCFF: false;
}
@font-face {
src: url("../../../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
fontWeight: bold;
fontFamily: EmbeddedVerdanaHalo;
embedAsCFF: false;
}
@font-face {
src: url("../../../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
fontStyle: italic;
fontFamily: EmbeddedVerdanaHalo;
embedAsCFF: false;
}
s|Button{
fontFamily: EmbeddedVerdana;
fontLookup: embeddedCFF;
fontAntiAliasType: normal;
}
mx|Panel{
fontFamily: EmbeddedVerdanaHalo;
fontLookup: embeddedCFF;
fontAntiAliasType: normal;
headerHeight:36;
}
mx|Button{
fontFamily: EmbeddedVerdanaHalo;
fontLookup: embeddedCFF;
fontAntiAliasType: normal;
}
s|Label {
fontAntiAliasType: "normal";
fontFamily: EmbeddedVerdana;
fontLookup: "embeddedCFF";
}
mx|Label {
fontAntiAliasType: "normal";
fontFamily: EmbeddedVerdanaHalo;
fontLookup: "embeddedCFF";
}
s|RichText {
fontAntiAliasType: "normal";
fontFamily: EmbeddedVerdana;
fontLookup: "embeddedCFF";
}
s|RichEditableText {
fontAntiAliasType: "normal";
fontFamily: EmbeddedVerdana;
fontLookup: "embeddedCFF";
}
global{
fontFamily: EmbeddedVerdana;
fontAntiAliasType: normal;
}
</fx:Style>
<fx:Script>
<![CDATA[
[Bindable]
private var str:String="RichEditableText does not have scrollbars, but it implements the IViewport interface for programmatic scrolling so that it can be controlled by a Scroller, which does provide scrollbars. It also supports vertical scrolling with the mouse";
]]>
</fx:Script>
<mx:Panel title="panel title" >
<s:Button label="spark module button"/>
<mx:Button label="mx module button" />
<mx:Label text="halo label"/>
<s:Label text="spark label"/>
<s:RichText text="spark rich text"/>
<s:RichEditableText text="{str}" width="140" height="110"/>
</mx:Panel>
</mx:Module>