reticivis-net / mediaforge

A Discord bot for editing and creating videos, images, GIFs, and more!
https://discord.com/oauth2/authorize?client_id=780570413767983122
GNU General Public License v3.0
84 stars 28 forks source link

add fallback fonts to support more scripts #250

Open LiuWaiting203 opened 2 months ago

LiuWaiting203 commented 2 months ago

When I tried using your caption features It become a randomized code So you probably forgot to converting it to UTF-8 image

esmBot won't cause this trouble btw.

reticivis-net commented 2 months ago

I don’t think it’s a utf-8 bug, discord and python natively use utf-8. I think it’s just cause the font I use (atkinson Hyperlegible) doesn’t support Chinese and it’s failing to fall back to a font that does support it. Should be possible to add a fallback font in there to support more languages. If it wasn’t utf 8 it would look different, and it wouldn’t support emojis and some other languages (which it does)