Skip to content

TextClip Word Wrapping issue #2547

@superfonz

Description

@superfonz

Expected Behavior

with the method caption in TextClip it should auto break word wise not char-wise in my opinion.
for example if its at the end of a line, something like 'there' will be
'th
ere' with is not helpful.

from moviepy.video.VideoClip import TextClip

text_clip = TextClip(
text='this is a really long text comment so it can be seen that the text clip is not functioning properly.',
method='caption',
size=(300, None),
color='white',
font_size=20,
text_align='center'
)
text_clip.show()

Actual Behavior

the 'is' should not be clipped.

Used medias

Specifications

  • Python Version: 3.10
  • MoviePy Version: 2.2.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssues that report (apparent) bugs.textIssues dealing with TextClip, SubtitlesClip, or handling of text in general.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions