From 83cb47913195c43cde2b3ae344ff1d89a223e6a6 Mon Sep 17 00:00:00 2001 From: Hufe921 Date: Thu, 25 Jul 2024 20:54:29 +0800 Subject: [PATCH] fix: update punctuation width when scaling the page #712 --- src/editor/core/draw/Draw.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/editor/core/draw/Draw.ts b/src/editor/core/draw/Draw.ts index fb4a2c4..a3f851b 100644 --- a/src/editor/core/draw/Draw.ts +++ b/src/editor/core/draw/Draw.ts @@ -1580,10 +1580,11 @@ export class Draw { } } // 标点符号 - curRowWidth += this.textParticle.measurePunctuationWidth( + const punctuationWidth = this.textParticle.measurePunctuationWidth( ctx, nextElement ) + curRowWidth += punctuationWidth * scale } } // 列表信息