mifi / editly

Slick, declarative command line video editing & API
MIT License
4.8k stars 312 forks source link

Chinese can not wraps lines automatically #258

Open HeftyKoo opened 1 year ago

HeftyKoo commented 1 year ago

json5:

{
  outPath: './chinese.mp4',
  clips: [
    {
      duration: 3,
      layers: [
        { type: 'image', path: './assets/img1.jpg'},
        { type: 'subtitle', text: '这是一段文字,这是一段文字来试试文字的切换这是一段文字,这是一段文字来试试文字的切换这是一段文字,这是一段文字来试试文字的切换', backgroundColor: 'rgba(0,0,0,0.5)' },
      ]
    }
  ]
}

Here is the result:

20230504202348_rec_