leafer-ui icon indicating copy to clipboard operation
leafer-ui copied to clipboard

文本元素使用letterSpacing后,emoji 显示不正常

Open mozbia opened this issue 7 months ago • 3 comments

版本:1.6.2 代码: ` import { Box, App, version, Platform, Text } from 'leafer-ui'

import '@leafer-in/editor' import '@leafer-in/viewport' import '@leafer-in/flow' import '@leafer-in/export' import '@leafer-in/resize' import '@leafer-in/state' import '@leafer-in/text-editor'

console.log(version) window.onload = () => { const leafer = new App({ view: window, usePartRender: true,

// zoom: {
//   disabled: true,
// },
// move: {
//   disabled: true,
// },

pointer: {
  preventDefault: false,
  preventDefaultMenu: true,
},
touch: {
  preventDefault: true,
},

tree: { type: 'design' },

})

const image = new Text({ x: 10, y: 10, fill: 'red', fontSize: 50, text: '你好 嘿嘿🙂', })

const image2 = new Text({ x: 10, y: 70, fill: 'red', fontSize: 50, text: 'leafer 🙂', letterSpacing: 1, })

const image1 = new Box({ width: 300, height: 300, x: 10, y: 10, fill: 'blue', overflow: 'hide', })

image1.addMany(image, image2)

leafer.tree.addMany(image1) }

`

Image

mozbia avatar May 21 '25 09:05 mozbia

收到,谢谢反馈~

leaferjs avatar May 22 '25 01:05 leaferjs

已修复,等待新版本发布~

leaferjs avatar May 23 '25 07:05 leaferjs

新版本已发布

leaferjs avatar May 26 '25 08:05 leaferjs