fix: update punctuation width when scaling the page #712

This commit is contained in:
Hufe921
2024-07-25 20:54:29 +08:00
parent d939aa35ba
commit 83cb479131
+2 -1
View File
@@ -1580,10 +1580,11 @@ export class Draw {
} }
} }
// 标点符号 // 标点符号
curRowWidth += this.textParticle.measurePunctuationWidth( const punctuationWidth = this.textParticle.measurePunctuationWidth(
ctx, ctx,
nextElement nextElement
) )
curRowWidth += punctuationWidth * scale
} }
} }
// 列表信息 // 列表信息