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

Method bold

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

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

()

Source from the content-addressed store, hash-verified

196 * @returns {Text} this object for chaining
197 */
198 bold() {
199 if (
200 !this.font.startsWith("bold ") &&
201 !this.font.startsWith("italic bold ")
202 ) {
203 this.font = "bold " + this.font;
204 this.isDirty = true;
205 }
206 return this;
207 }
208
209 /**
210 * make the font italic

Callers 5

onResetEventMethod · 0.95
font.spec.jsFile · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected