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

Method setFontIsItalic

js/text.js:95–106  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

93 }
94
95 setFontIsItalic(state) {
96 this.isItalic = state;
97 if (state) {
98 this.input.style['font-style'] = 'italic';
99 } else {
100 this.input.style['font-style'] = 'normal';
101 }
102 if (this.active) {
103 this.input.focus();
104 this.reLimit();
105 }
106 }
107
108 setFontSize(size) {
109 this.fontSize = size;

Callers 2

constructorMethod · 0.95
constructorMethod · 0.80

Calls 1

reLimitMethod · 0.95

Tested by

no test coverage detected