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 in TextClip in multiple colors #1747

Closed
przemeczek opened this issue Apr 4, 2022 · 1 comment
Closed

Text in TextClip in multiple colors #1747

przemeczek opened this issue Apr 4, 2022 · 1 comment
Labels
question Questions regarding functionality, usage text Issues dealing with TextClip, SubtitlesClip, or handling of text in general.

Comments

@przemeczek
Copy link

przemeczek commented Apr 4, 2022

Is there a way to display a substring of the text specified in the TextClip constructor in a different color than the rest of the text?
To be clearer, what I want to achieve is this:

  1. Say, I have this line of code in my script
    txt_clip = TextClip("Text Test",font="Tahoma-Bold", fontsize=70,color='black',stroke_width=5)
  2. I want "Text" to be black and "Test" to be red in the final clip. How can I accomplish this?

Thanks!

@keikoro keikoro added question Questions regarding functionality, usage text Issues dealing with TextClip, SubtitlesClip, or handling of text in general. labels Apr 4, 2022
@keikoro
Copy link
Collaborator

keikoro commented Apr 4, 2022

See #1123 and #1228

@keikoro keikoro closed this as completed Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Questions regarding functionality, usage text Issues dealing with TextClip, SubtitlesClip, or handling of text in general.
Projects
None yet
Development

No branches or pull requests

2 participants