There is a function that adds text to a video clip. But when you specify the font style parameter, it does not change. What could be the problem?
Cod:
vid = VideoFileClip(name_video)
text1 = TextClip(text_for_video, fontsize=size, font='Courier', color=color)
txt_clip = text1.set_pos(("right", "top"), relative=True).set_duration(text_end_time-text_start_time)
text2 = TextClip(text_for_video, fontsize=size, font='TimesNewRoman', color=color)
txt_clip_2 = text2.set_pos(("right", "top"), relative=True).set_duration(5)
video = CompositeVideoClip([vid, txt_clip.set_start(text_start_time), txt_clip_2.set_start(10)])
video.write_videofile('video_res.mp4', codec='libx264')