Open nonrice opened 1 year ago
I am not sure whether there is an alternative for text stroke. But if your aim is to differentiate the text from the background, You got 2 options(based on my knowing):
Actually I ended up figuring out a workaround. I ended up choosing the ImageMagick "Label" style, and performing text wrapping with the builtin textwrap library, solving my problems with the text wrap breaking. Not a complete fix, since you have to be mindful when choosing the number of characters to wrap at, but it works for my purpose. Really hoping an easier way to do this could be implemented, since this is such a common task, especially in modern videos.
@nonrice If you're using a TextClip
there are 2 additional parameters for stroke, stroke_color: str
and stroke_width: int
and to use Text Wrap use method='caption'
.
@TheHimanshuRastogi This creates a middle stroke, not an outer stroke. This is not what I am looking for.
@nonrice Hope you found your solution ASAP.
I would like to give my subtitles an outline that only exist on the outside of the characters. The only fix mentioned #1318 suggests writing 2 copies of the text, one stroked, one unstroked. However, because the stroked text is wider, it changes the line wrapping, causing the two sets of text to be mismatched some of the time. How can I achieve outlined subtitles with proper line wrapping?