Skip to content
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

Chinese font cant display whole content #14

Open
colin4k opened this issue Jul 13, 2024 · 5 comments
Open

Chinese font cant display whole content #14

colin4k opened this issue Jul 13, 2024 · 5 comments

Comments

@colin4k
Copy link

colin4k commented Jul 13, 2024

If change to Chinese fonts, the text content cant be displayed totally, some content would be cut.
translated.pdf

@gesen2egee
Copy link

gesen2egee commented Jul 16, 2024

image
It seems to be related to the textwrap_local section, which was originally set for Japanese, so there is a discrepancy in the width for Chinese. I modified it like this; the output isn't very aligned but won't truncate the text. There might be a better way to adjust it, but I'm not sure.

#EDIT
All set to 2.4 is good

@colin4k
Copy link
Author

colin4k commented Jul 19, 2024

image It seems to be related to the textwrap_local section, which was originally set for Japanese, so there is a discrepancy in the width for Chinese. I modified it like this; the output isn't very aligned but won't truncate the text. There might be a better way to adjust it, but I'm not sure.

#EDIT All set to 2.4 is good

No, your code didn't solve the problem, the text still was truncated. You can see the attachment.
translated-3.pdf

@colin4k
Copy link
Author

colin4k commented Jul 19, 2024

There are

image It seems to be related to the textwrap_local section, which was originally set for Japanese, so there is a discrepancy in the width for Chinese. I modified it like this; the output isn't very aligned but won't truncate the text. There might be a better way to adjust it, but I'm not sure.

#EDIT All set to 2.4 is good
There were many Chinese words totally being cut and hidden, so maybe you think it wasn't just very aligned.

@colin4k
Copy link
Author

colin4k commented Jul 19, 2024

image It seems to be related to the textwrap_local section, which was originally set for Japanese, so there is a discrepancy in the width for Chinese. I modified it like this; the output isn't very aligned but won't truncate the text. There might be a better way to adjust it, but I'm not sure.

#EDIT All set to 2.4 is good

OK, I knew. All set to '2.4' would still be truncated, the config in your photo is good.

@gesen2egee
Copy link

good
maybe because we used different font/pdf layout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants