MCPcopy Create free account
hub / github.com/devforth/painterro / setFont

Method setFont

js/text.js:65–74  ·  view source on GitHub ↗
(font)

Source from the content-addressed store, hash-verified

63 }
64
65 setFont(font) {
66 this.font = font;
67 this.input.style['font-family'] = font;
68 if (this.active) {
69 this.input.focus();
70 }
71 if (this.active) {
72 this.reLimit();
73 }
74 }
75
76 setStrokeOn(state) {
77 this.strokeOn = state;

Callers 2

constructorMethod · 0.95
constructorMethod · 0.80

Calls 1

reLimitMethod · 0.95

Tested by

no test coverage detected