MCPcopy
hub / github.com/4ian/GDevelop / setFontName

Method setFontName

Extensions/TextObject/textruntimeobject.ts:504–507  ·  view source on GitHub ↗

* Set the name of the resource to use for the font. * @param fontResourceName The name of the font resource.

(fontResourceName: string)

Source from the content-addressed store, hash-verified

502 * @param fontResourceName The name of the font resource.
503 */
504 setFontName(fontResourceName: string): void {
505 this._fontName = fontResourceName;
506 this._renderer.updateStyle();
507 }
508
509 /**
510 * Return true if the text is bold.

Callers 3

updateFromObjectDataMethod · 0.95
GDJS.jsFile · 0.80

Calls 1

updateStyleMethod · 0.80

Tested by

no test coverage detected