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

Hello, this is an error inquiry regarding font processing. #588

Open
Hyeonqz opened this issue Aug 8, 2024 · 1 comment
Open

Hello, this is an error inquiry regarding font processing. #588

Hyeonqz opened this issue Aug 8, 2024 · 1 comment

Comments

@Hyeonqz
Copy link

Hyeonqz commented Aug 8, 2024

My development environment is macOS(14.5) and I am developing in a local environment.
While developing, I worked on docx to pdf.
The pdf file was converted well.

But when I open the pdf file the format and fonts are broken.

this is error log

2024-08-09:16:23.908+09:00  WARN 10950 --- [nio-8080-exec-1] org.docx4j.fonts.RunFontSelector         : TODO: how to handle char '”' in range c>='\u2000' && c<='\u2EFF'?
2024-08-08T19:16:23.909+09:00  WARN 10950 --- [nio-8080-exec-1] org.docx4j.fonts.RunFontSelector         : TODO: how to handle char '①' in range c>='\u2000' && c<='\u2EFF'?
2024-08-08T19:16:23.909+09:00  WARN 10950 --- [nio-8080-exec-1] org.docx4j.fonts.RunFontSelector         : TODO: how to handle char '“' in range c>='\u2000' && c<='\u2EFF'?
2024-08-08T19:16:23.909+09:00  WARN 10950 --- [nio-8080-exec-1] org.docx4j.fonts.RunFontSelector         : TODO: how to handle char '”' in range c>='\u2000' && c<='\u2EFF'?
2024-08-08T19:16:23.909+09:00  WARN 10950 --- [nio-8080-exec-1] org.docx4j.fonts.RunFontSelector         : TODO: how to handle char '“' in range c>='\u2000' && c<='\u2EFF'?
2024-08-08T19:16:23.909+09:00  WARN 10950 --- [nio-8080-exec-1] org.docx4j.fonts.RunFontSelector         : TODO: how to handle char '”' in range c>='\u2000' && c<='\u2EFF'?
2024-08-08T19:16:25.374+09:00  WARN 10950 --- [nio-8080-exec-1] org.docx4j.fonts.RunFontSelector         : TODO: how to handle char '⑤' in range c>='\u2000' && c<='\u2EFF'?
2024-08-08T19:16:25.374+09:00  WARN 10950 --- [nio-8080-exec-1] org.docx4j.fonts.RunFontSelector         : TODO: how to handle char '“' in range c>='\u2000' && c<='\u2EFF'?
2024-08-08T19:16:25.374+09:00  WARN 10950 --- [nio-8080-exec-1] org.docx4j.fonts.RunFontSelector         : TODO: how to handle char '”' in range c>='\u2000' && c<='\u2EFF'?
2024-08-08T19:16:25.375+09:00  WARN 10950 --- [nio-8080-exec-1] org.docx4j.fonts.RunFontSelector         : TODO: how to handle char '⑥' in range c>='\u2000' && c<='\u2EFF'?

I think I can solve the TODO item in the RunFontSelector class by modifying or extending the source code of docx4j.
In this case, I would like to add a way to handle a specific range of characters to the code.

Is this possible?

I find this library really useful. Thank you as always

@plutext
Copy link
Owner

plutext commented Aug 8, 2024

You are welcome of course to fix the issue in your own copy of docx4j. Even better would be to make a pull request (PR) with your fix. Thanks!

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