* make the font italic * @returns {Text} this object for chaining
()
| 211 | * @returns {Text} this object for chaining |
| 212 | */ |
| 213 | italic() { |
| 214 | if ( |
| 215 | !this.font.startsWith("italic ") && |
| 216 | !this.font.startsWith("bold italic ") |
| 217 | ) { |
| 218 | this.font = "italic " + this.font; |
| 219 | this.isDirty = true; |
| 220 | } |
| 221 | return this; |
| 222 | } |
| 223 | |
| 224 | /** |
| 225 | * set the font family and size |
no outgoing calls
no test coverage detected