艺术字(TextAtlas)
<p>[TOC]</p>
<h3>创建艺术字文本</h3>
<pre><code>co.TextAtlas:create(parent, ID, x, y, stringValue, charMapFile, itemWidth, itemHeight, startCharMap, sheet)</code></pre>
<pre><code>parent 父节点对象
ID 唯一ID
x 位置 横坐标
y 位置 纵坐标
stringValue 文本内容
charMapFile 艺术字路径
itemWidth 单个字体宽度
itemHeight 单个字体高度
startCharMap 起始字符设置(“/“)
sheet 字体内容(H5专属) 比如图片文字是“+-0123456789”,那这个sheet的值就是”+-0123456789”</code></pre>
<h3>设置艺术字配置</h3>
<pre><code>co.TextAtlas:setProperty(widget, stringValue, charMapFile, itemWidth, itemHeight, startCharMap, sheet)</code></pre>
<pre><code>widget 艺术字对象
stringValue 文本内容
charMapFile 艺术字路径
itemWidth 单个字体宽度
itemHeight 单个字体高度
startCharMap 起始字符设置(“/“)
sheet 字体内容(H5专属) 比如图片文字是“+-0123456789”,那这个sheet的值就是”+-0123456789”</code></pre>
<h3>设置艺术字文本</h3>
<pre><code>co.TextAtlas:setString(widget,text)</code></pre>
<pre><code>widget 艺术字对象
text 文本内容</code></pre>
<h3>获取艺术字文本</h3>
<pre><code>co.TextAtlas:getString(widget)</code></pre>