Skip to content

Commit bbfd9ab

Browse files
authored
Merge pull request #8733 from processing/variable-font-perf
Remove canvas style attribute update when changing font weight
2 parents 8010b5d + ce973e2 commit bbfd9ab

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

src/type/textCore.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1587,13 +1587,6 @@ function textCore(p5, fn) {
15871587
if (typeof weight === 'number') {
15881588
this.states.setValue('fontWeight', weight);
15891589
this._applyTextProperties();
1590-
1591-
// Safari works without weight set in the canvas style attribute, and actually
1592-
// has buggy behavior if it is present, using the wrong weight when drawing
1593-
// multiple times with different weights
1594-
if (!p5.prototype._isSafari()) {
1595-
this._setCanvasStyleProperty('font-variation-settings', `"wght" ${weight}`);
1596-
}
15971590
return;
15981591
}
15991592
// the getter

0 commit comments

Comments
 (0)