Author: jgrandy
Date: 2007-06-26 16:09:43 -0700 (Tue, 26 Jun 2007)
New Revision: 5526
Modified:
openlaszlo/branches/legals/test/text/swf8-apis.lzx
Log:
live control over thickness/sharpness
Modified: openlaszlo/branches/legals/test/text/swf8-apis.lzx
===================================================================
--- openlaszlo/branches/legals/test/text/swf8-apis.lzx 2007-06-26 23:01:55 UTC
(rev 5525)
+++ openlaszlo/branches/legals/test/text/swf8-apis.lzx 2007-06-26 23:09:43 UTC
(rev 5526)
@@ -22,6 +22,12 @@
<handler name="oninit">
this.setAntiAliasType(this.antiAliasType, this.gridFitType,
this.thickness, this.sharpness);
</handler>
+ <handler name="onthickness">
+ this.setAntiAliasType(this.antiAliasType, this.gridFitType,
this.thickness, this.sharpness);
+ </handler>
+ <handler name="onsharpness">
+ this.setAntiAliasType(this.antiAliasType, this.gridFitType,
this.thickness, this.sharpness);
+ </handler>
</class>
<view layout="axis:x">
@@ -36,18 +42,29 @@
text="And the momeraths outgrabe" font="Helvetica"
fontsize="24"/>
</view>
<view layout="axis:y">
- <tweakedtext antiAliasType="'advanced'" gridFitType="'subpixel'"
sharpness="400"
+ <attribute name="antiAliasType" value="'advanced'"/>
+ <attribute name="gridFitType" value="'subpixel'"/>
+ <attribute name="thickness" value="${thicknessslider.value}"/>
+ <attribute name="sharpness" value="${sharpnessslider.value}"/>
+ <tweakedtext
+ antiAliasType="${parent.antiAliasType}"
gridFitType="${parent.gridFitType}"
+ thickness="${parent.thickness}" sharpness="${parent.sharpness}"
text="Twas brillig and the slithy toves"
fontsize="9" font="Helvetica"/>
- <tweakedtext antiAliasType="'advanced'" gridFitType="'subpixel'"
sharpness="400"
+ <tweakedtext antiAliasType="${parent.antiAliasType}"
gridFitType="${parent.gridFitType}"
+ thickness="${parent.thickness}" sharpness="${parent.sharpness}"
text="Did gyre and gimble in the wabe"
fontsize="13" font="Helvetica"/>
- <tweakedtext antiAliasType="'advanced'" gridFitType="'subpixel'"
sharpness="400"
+ <tweakedtext antiAliasType="${parent.antiAliasType}"
gridFitType="${parent.gridFitType}"
+ thickness="${parent.thickness}" sharpness="${parent.sharpness}"
text="All mimsy were the borogroves"
fontsize="18" font="Helvetica"/>
- <tweakedtext antiAliasType="'advanced'" gridFitType="'subpixel'"
sharpness="400"
+ <tweakedtext antiAliasType="${parent.antiAliasType}"
gridFitType="${parent.gridFitType}"
+ thickness="${parent.thickness}" sharpness="${parent.sharpness}"
text="And the momeraths outgrabe"
fontsize="24" font="Helvetica"/>
+ <slider name="thicknessslider" minvalue="-200" maxvalue="200"
value="0"/>
+ <slider name="sharpnessslider" minvalue="-400" maxvalue="400"
value="0"/>
</view>
</view>
</canvas>
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins