Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Text: Rich" filter gets corrupted after pasting text #1400

Open
PontiacCZ opened this issue Feb 3, 2023 · 2 comments
Open

"Text: Rich" filter gets corrupted after pasting text #1400

PontiacCZ opened this issue Feb 3, 2023 · 2 comments

Comments

@PontiacCZ
Copy link

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)
@ddennedy
Copy link
Member

ddennedy commented Feb 3, 2023

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.

@PontiacCZ
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants