* change the font settings * @param {string} textAlign - ("left", "center", "right") * @param {number} [scale] * @returns {BitmapText} this object for chaining
(textAlign, scale)
| 157 | * @returns {BitmapText} this object for chaining |
| 158 | */ |
| 159 | set(textAlign, scale) { |
| 160 | this.textAlign = textAlign; |
| 161 | // updated scaled Size |
| 162 | if (scale) { |
| 163 | this.resize(scale); |
| 164 | } |
| 165 | this.isDirty = true; |
| 166 | |
| 167 | return this; |
| 168 | } |
| 169 | |
| 170 | /** |
| 171 | * change the text to be displayed |
no test coverage detected