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

Any Unicode Font For TextClip #2108

Closed
terry891 opened this issue Feb 1, 2024 · 0 comments
Closed

Any Unicode Font For TextClip #2108

terry891 opened this issue Feb 1, 2024 · 0 comments
Labels
question Questions regarding functionality, usage text Issues dealing with TextClip, SubtitlesClip, or handling of text in general.

Comments

@terry891
Copy link

terry891 commented Feb 1, 2024

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

@terry891 terry891 added the question Questions regarding functionality, usage label Feb 1, 2024
@terry891 terry891 closed this as completed Feb 1, 2024
@keikoro keikoro added the text Issues dealing with TextClip, SubtitlesClip, or handling of text in general. label Feb 10, 2024
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