fix: draw text element letter space error #282
This commit is contained in:
@@ -1593,9 +1593,9 @@ export class Draw {
|
|||||||
this.blockParticle.render(pageNo, element, x, y)
|
this.blockParticle.render(pageNo, element, x, y)
|
||||||
} else {
|
} else {
|
||||||
this.textParticle.record(ctx, element, x, y + offsetY)
|
this.textParticle.record(ctx, element, x, y + offsetY)
|
||||||
// 如果设置字宽需单独绘制
|
// 如果设置字宽、字间距需单独绘制
|
||||||
if (element.width) {
|
if (element.width || element.letterSpacing) {
|
||||||
this._drawRichText(ctx)
|
this.textParticle.complete()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 下划线记录
|
// 下划线记录
|
||||||
|
|||||||
Reference in New Issue
Block a user