@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";
@font-face {
src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
fontFamily: MyArial;
embedAsCFF: true;
}
@font-face {
src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
fontFamily: MyArial;
fontStyle: italic;
embedAsCFF: true;
}
@font-face {
src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
fontFamily: MyArial;
fontWeight: bold;
embedAsCFF: true;
}
@font-face{
src: url("../../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Regular.ttf");
fontFamily: CourierCFF;
embedAsCFF: true;
}
@font-face{
src: url("../../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Bold.ttf");
fontWeight: bold;
fontFamily: CourierCFF;
embedAsCFF: true;
}
s|RichEditableText{
fontAntiAliasType: "normal";
fontFamily: MyArial;
fontSize: 12;
fontLookup: "embeddedCFF";
}
s|CheckBox{
fontAntiAliasType: "normal";
fontFamily: MyArial;
fontSize: 12;
fontLookup: "embeddedCFF";
}
= Vector.(["lineThrough","textDecoration"]);
var format:TextLayoutFormat = myText.getFormatOfRange(properties);
if (propertyName == "lineThrough") {
format.lineThrough = value;
} else if (propertyName == "textDecoration") {
format.textDecoration = value ? "underline" : "none";
}
myText.setFormatOfRange(format);
myText.setFocus();
dispatchEvent(new FlexEvent("propSet"));
}
protected function underlineToggle_changeHandler(event:Event):void
{
setProperty("textDecoration", underlineToggle.selected);
}
protected function strikethroughToggle_changeHandler(event:Event):void
{
setProperty("lineThrough", strikethroughToggle.selected);
}
]]>