Open
Description
When a piece of text is set with the 'fontFamily' attribute, the width it displays will become incorrect
The correct result should be like this
new Konva.Text({
x: 50,
y: 50,
width: 800,
height: 'auto',
fontFamily: 'zk',
lineHeight: 1,
text: '1111111111111111111111111111111111111111111111111111111111111',
fontSize: 80,
fill: 'red',
draggable: true,
listening: true,
})
@font-face {
font-family: 'zk2';
src: url('@/assets/zk.ttf') format('truetype');
}
Metadata
Metadata
Assignees
Labels
No labels