-
Notifications
You must be signed in to change notification settings - Fork 256
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
[BUG] SetFont(simsun.ttf) doesn't working for chinese font #114
Comments
How was this solved? |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment has been minimized.
This comment has been minimized.
This is an outdated question. Font support has been completely revamped over the least year and font subsetting added as well. |
Please keep the discussion focused on topic with respect to the library. This is something that we would like the library to support. To discuss other methods please seek other discussion forums and such. |
The issue with the code in the issue is that it uses By using |
Chinese characters will be crowded together, can this be solved? |
Hi @carmel, could you provide a runnable code snippet? by proving runnable code snippet we can further investigate the issue. However, we tried to reproduce the issue by modifying the code in this issue. Code
ResultsProbably you can try to update the UniPDF to the latest version and checks if the issue still appears. |
I've found that it has to do with fonts, and the above problem occurs with Microsoft YaHei, but not with SimFang. |
@carmel here the results when I test with Microsoft Yahei font It's hard to reproduce the issue by guessing, if you could provide runnable code snippet if would be good |
Thanks for the example, maybe it's because I'm using a low version of it. |
We are happy able to help, let us know if you still having the issue by sharing runnable code snippet 🙂 Best regards |
Please open a new issue if the problem reoccurs. |
I want to display chinese font normally by using SetFont Method to set the font of simsun.ttf or NotoSansSC-Regular.ttf which support display chinese font normally,
but it's doesn't working. so anyone cloud help me how to display chinese font normally ?
Here's the code for my testing,
The text was updated successfully, but these errors were encountered: