Closed wangtao1025 closed 3 weeks ago
先配置使用渲染兼容模式:
const options: IEditorOption = {
renderMode: RenderMode.COMPATIBILITY
}
连续输入数字 1 也会出现光标位置不准确
ctx.font = '24px Microsoft YaHei';
ctx.measureText("1").width * 2 !== ctx.measureText("11").width
// ctx.measureText("1").width: 12
// ctx.measureText("11").width: 23.12109375
version
latest
Link to minimal reproduction
No response
Steps to reproduce
官网 demo 中在中文标题中间插入多个英文字符会造成光标位置不准确
What is expected?
光标准确
What is actually happening?
无
Editor Value
No response
System Info
No response
Any additional comments?
No response