-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 not support chinese? #213
Comments
I have a similar issue too. And, @cossonleo 's method is not work for my testing. The input text: The result: Modified code ( pub fn main() {
Todos::run(Settings {
default_font: Some(include_bytes!(
"C:/Users/usagi/tmp/NotoSansCJKjp-hinted/NotoSansCJKjp-Medium.otf"
)),
..Settings::default()
})
} |
@hecrj Ah, "but it's in the roadmap!" that's good! Thank you. 👍👍 |
@usagi I don't know why the format |
@Folyd Hmm, you are right. I tried three file types.
I don't know the details of font file types. However, it may be helpful that only the TTF type to fix the problem quickly in now. |
Yes, we only support TrueType fonts for now. This is a known limitation of the renderer, which uses |
可以从C:\Windows\Fonts 中找宋体的ttf字体设置 |
Be caution. The fonts shipped with Windows is copyrighted. Bundling them into your program leads to legal issues. You can use free (free as freedom, not free beer) fonts such as WenQuanYi fonts instead, or load proprietary fonts from |
@balthild i got it,thank you! |
此方法在新版本中似乎不适用了
|
I test the example/todus, found this example doesn't support chinese?
Or my config file wrong ?
The text was updated successfully, but these errors were encountered: