-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Weird Chinese rendering #25
Comments
see also #10 |
you can edit cast file: add a space character as placeholder after all chinese characters |
This works well! Thanks! I'm using a perl command to convert it now. (It should be a sed cmd for general usage, but I'm having trouble making sed support unicode) cat demo.cast | perl -CS -pe 's/([\x{4e00}-\x{9fa5}]|[\x{3040}-\x{30ff}])/$1 /g' > demo.space.cast The first part (\u4e00-\u9fa5) matches basic CJKs and second part (\u3040-\u30ff) matches japanese kanas. These seems enough for me, check wiki if u need other blocks. |
@zetako Works for me, thanks |
When I use Chinese in terminal it looks fine like this
But when I render it as a gif using agg , the Chinese becomes weird
If I use
fontdb
as renderer, then Chinese will not be displayed.The text was updated successfully, but these errors were encountered: