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
Does it support unicode? #54
Comments
Rendering Chinese characters shouldn't be a problem, what exactly doesn't work? |
You need the latest code ( #52 ) if you are using python 2.x, instead of 3.x . One of the most recent changes a few days ago fixes encoding issue for python 2.x .
|
Here is example 1 quickly adapted to do Chinese. As I expected, just using a chinese-capable font and a chinese phrase would do, so the change is only two lines:
OTOH, as I mentioned above, python 2.x does strings and unicodes somewhat differently; so this change for example 1 only works on python 3.x. My fix ( #52 ) only fixes unicode processing for the emoji example. TODO. |
I tested both of these answers for python2, and both work. You can either put this line near the top:
which enables python 2.x to process strings python 3.x style, or add a
Both of these work, you only need one of them. The first one is probably easiest. |
I use it to make pictures of Chinese words, but it since that doesn't support.
The text was updated successfully, but these errors were encountered: