fix: word break boundary error #521

pr675
Hufe921 2 years ago
parent 07956caec2
commit 4d1a0b69f8

@ -1519,9 +1519,12 @@ export class Draw {
elementList, elementList,
i i
) )
// 单词宽度大于行可用宽度,无需折行
if (width <= availableWidth) {
curRowWidth += width curRowWidth += width
nextElement = endElement nextElement = endElement
} }
}
// 标点符号 // 标点符号
curRowWidth += this.textParticle.measurePunctuationWidth( curRowWidth += this.textParticle.measurePunctuationWidth(
ctx, ctx,

Loading…
Cancel
Save