From 549b44a37a0680cfd45259f6a95afd09f5985e85 Mon Sep 17 00:00:00 2001 From: Dave Pagurek Date: Sun, 19 Apr 2026 13:52:32 -0400 Subject: [PATCH] Remove canvas style attribute update when changing font weight --- src/type/textCore.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/type/textCore.js b/src/type/textCore.js index 079294b64a..b978fdee12 100644 --- a/src/type/textCore.js +++ b/src/type/textCore.js @@ -1587,13 +1587,6 @@ function textCore(p5, fn) { if (typeof weight === 'number') { this.states.setValue('fontWeight', weight); this._applyTextProperties(); - - // Safari works without weight set in the canvas style attribute, and actually - // has buggy behavior if it is present, using the wrong weight when drawing - // multiple times with different weights - if (!p5.prototype._isSafari()) { - this._setCanvasStyleProperty('font-variation-settings', `"wght" ${weight}`); - } return; } // the getter