Inheritance BitmapText
Container View
Module hilo/view/BitmapText
Requires
hilo/core/Class, hilo/core/Hilo, hilo/view/Container, hilo/view/Bitmap
Source
BitmapText.js
BitmapText support bitmap text function ,but only support single-line text
Property | Defined | |
---|---|---|
glyphs:Object
font glyph set of bitmap.
|
BitmapText | |
letterSpacing:Number
spacing of letter.
|
BitmapText | |
text:String
content of bitmap text.
|
BitmapText | |
textAlign:String
property values:left、center、right, default:left,Not writable,set this property by 'setTextAlign'
|
BitmapText |
Method | Defined | |
---|---|---|
BitmapText(properties:Object)
Constructor
|
BitmapText | |
hasGlyphs(str:String):Boolean
detect whether can display the string by the currently assigned font provided
|
BitmapText | |
setText(text:String):BitmapText
set the content of bitmap text
|
BitmapText | |
setTextAlign(textAlign):BitmapText
set the textAlign of text。
|
BitmapText | |
createGlyphs(text:String, image:Image, col:Number, row:Number):BitmapText
static
easy way to generate a collection of glyphs
|
BitmapText |