Commit 0cc106d7 by 曹玉玺

处理字体

parent 504cb853
...@@ -390,7 +390,7 @@ async png2jpg (srcPng, dstJpg) { ...@@ -390,7 +390,7 @@ async png2jpg (srcPng, dstJpg) {
var p = new Promise(function (resv, reject) { var p = new Promise(function (resv, reject) {
imageMagick(bs, bs, "#fff") imageMagick(bs, bs, "#fff")
// .font(__dirname + "/fonts/songti.TTC") // .font(__dirname + "/fonts/songti.TTC")
.font(__dirname + "/fonts/SourceHanSansSC-Regular.otf") .font(__dirname + "/fonts/SourceHanSerifSC-Regular.otf")
.fontSize(fs) .fontSize(fs)
// .encoding("UTF-8") // .encoding("UTF-8")
.drawText(0, 0, word, "center") .drawText(0, 0, word, "center")
......
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