fix: word break boundary error #521
This commit is contained in:
@@ -1519,8 +1519,11 @@ export class Draw {
|
|||||||
elementList,
|
elementList,
|
||||||
i
|
i
|
||||||
)
|
)
|
||||||
curRowWidth += width
|
// 单词宽度大于行可用宽度,无需折行
|
||||||
nextElement = endElement
|
if (width <= availableWidth) {
|
||||||
|
curRowWidth += width
|
||||||
|
nextElement = endElement
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// 标点符号
|
// 标点符号
|
||||||
curRowWidth += this.textParticle.measurePunctuationWidth(
|
curRowWidth += this.textParticle.measurePunctuationWidth(
|
||||||
|
|||||||
Reference in New Issue
Block a user