Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions src/type/textCore.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading