Zulko / moviepy

Video editing with Python
https://zulko.github.io/moviepy/
MIT License
12.07k stars 1.51k forks source link

Any Unicode Font For TextClip #2108

Closed terry891 closed 5 months ago

terry891 commented 5 months ago

Here's useful info when you try to use non-ASCII codes.

MoviePY uses convert from ImageMagick to generate the TextClip. So, if you'd like to write non-ASCII characters, simply choose the font that works for your text.

For example:

txt = TextClip("🤫", font = 'Segoe-UI-Emoji', fontsize = 44)    #Emoji Font
txt = TextClip("测试", font="Kaiti-TC-Regular", fontsize = 44)   #Chinese Font

You can use identify -list font to see the list of available fonts you can use. Related Issues: #507, #1520