MCPcopy Create free account
hub / github.com/melonjs/melonJS / italic

Method italic

packages/melonjs/src/renderable/text/text.js:213–222  ·  view source on GitHub ↗

* make the font italic * @returns {Text} this object for chaining

()

Source from the content-addressed store, hash-verified

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

Callers 2

onResetEventMethod · 0.95
font.spec.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected