image-template-generator
Advanced tools
Comparing version 0.0.5 to 0.0.6
{ | ||
"name": "image-template-generator", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -139,3 +139,3 @@ /** | ||
fontSize: '16', | ||
fontWeigth: 'Normal', | ||
fontWeight: 'Normal', | ||
width: 4000, | ||
@@ -161,3 +161,3 @@ height: 4000, | ||
const font = { | ||
family: pathResolve(`../fonts/SourceHanSerifCN-${conf.fontWeigth}.ttf`), | ||
family: pathResolve(`../fonts/SourceHanSerifCN-${conf.fontWeight}.ttf`), | ||
size: +conf.fontSize | ||
@@ -238,2 +238,2 @@ }; | ||
return text.replace(reg, '$1\n'); | ||
} | ||
} |
8366768
13
490