Skip to content

Commit 3212866

Browse files
committed
also drop font-weight 400 when exporting to SVG
1 parent 37dee48 commit 3212866

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/snapshot/tosvg.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ module.exports = function toSVG(gd, format, scale) {
107107

108108
// Drop normal font-weight, font-style and font-variant to reduce the size
109109
var fw = this.style.fontWeight;
110-
if(fw && fw === 'normal') {
110+
if(fw && (fw === 'normal' || fw === 400)) { // font-weight 400 is similar to normal
111111
txt.style('font-weight', undefined);
112112
}
113113
var fs = this.style.fontStyle;

0 commit comments

Comments
 (0)