shotcut icon indicating copy to clipboard operation
shotcut copied to clipboard

"Text: Rich" filter gets corrupted after pasting text

Open PontiacCZ opened this issue 2 years ago • 2 comments

Sometimes I paste text to the "Text: Rich" filter, I can see the text in Shotcut preview but it does not get exported into video. So I did some research and I have steps how to reproduce this issue.

  1. open Shotcut (I have version 22.12.21 on Windows 10 Pro 21H2 x64) and create a new project HD 1080p 29.97 fps

  2. create a black color clip (Other -> Color) with the default duration of 4 seconds and add it to the timeline

  3. add a "Text: Rich" filter to the clip and keep the default frame size with the default font size 72

  4. in your browser (I have Firefox 109.0) open the Shotcut homepage and copy the sentence "Shotcut is a free, open source, cross-platform video editor." image

  5. paste this into the "Rich: text" filter

  6. something happens - the font size changes into 10 and the text is very tiny. image

  7. export the timeline into H.264 Main profile (or whatever else)

  8. examine the exported video - it's just black, no text there


You might say - "That's because I've pasted formatted text in there, there should be no problem with plain text". Well, sort of...

  1. remove the corrupted "Text: Rich" filter and add it again
  2. this time paste the same sentence as a plain text (you may use Notepad for getting rid off the formatting)
  3. the text keeps the size 72 and you would be able to successfully export it into video but - press CTRL + Z as if you want to undo the paste operation. Then CTRL + V again.
  4. now the font size has changed to 8 which means it got corrupted again and you're no longer able to export the text (feel free to enlarge the text, to size 30 or so, it won't help, the filter is broken now)

PontiacCZ avatar Feb 03 '23 22:02 PontiacCZ

I am sorry, but I know about it and have been unable to fix it due to the way the library we are using works making it difficult. This is why Edit > Paste Text Only was added (in the editor's menu button or context menu, not the main menu). You should learn to use it. You may then to suggest to make Paste Text Only the only Paste except that creates a new bug: copy and paste between Shotcut Rich Text filters does not retain any formatting.

ddennedy avatar Feb 03 '23 23:02 ddennedy

I see. I only searched open issues and found nothing about this so I posted it... OK, thank you for letting me know.

PontiacCZ avatar Feb 03 '23 23:02 PontiacCZ