LzTextFormat.lzx
<library>
<class name="textformat" extends="node">
<attribute name="font" type="string"/>
<attribute name="size"/>
<attribute name="color" type="color"/>
<attribute name="bold" type="boolean"/>
<attribute name="italic" type="boolean"/>
<attribute name="underline" type="boolean"/>
<attribute name="url" type="string"/>
<attribute name="target" type="string"/>
<attribute name="align"/>
<attribute name="leftmargin"/>
<attribute name="rightmargin"/>
<attribute name="indent"/>
<attribute name="leading"/>
<method name="construct" args="parent, args">
this.font = null;
this.size = null;
this.color = null;
this.bold = null;
this.italic = null;
this.underline= null;
this.url = null;
this.target = null;
this.align = null;
this.leftmargin = null;
this.rightmargin = null;
this.indent = null;
this.leading = null;
super.construct(parent, arguments);
</method>
<method name="toHTML">
var str = "<font ";
if (this.font) str += 'face="' + this.font +'" ';
if (this.size) str += 'size="' + this.size +'" ';
str += ">";
return str;
</method>
</class>
<class name="LzTextFormat" extends="textformat" oninit="Debug.warn('`LzTextFormat` is deprecated. Use `textformat`.')"/>
</library>