Commit 954466e7 by 曹玉玺

添加思源宋体字库

parent 342d263b
......@@ -382,7 +382,8 @@ async png2jpg (srcPng, dstJpg) {
//.font(__dirname+"/fonts/heiti.otf")
var p = new Promise(function (resv, reject) {
imageMagick(bs, bs, "#fff")
.font(__dirname + "/fonts/songti.TTC")
// .font(__dirname + "/fonts/songti.TTC")
.font(__dirname + "/fonts/SourceHanSerif-Regular.ttc")
.fontSize(fs)
.drawText(0, 0, word, "center")
.write(destfile, function (err) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment