Skip to content

Commit 990fa8d

Browse files
committed
fix toSVG using weight: 400
1 parent 99162e5 commit 990fa8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/snapshot/tosvg.js

+1-1
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' || fw === 400)) { // font-weight 400 is similar to 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)