docx4j
docx4j copied to clipboard
Hello, this is an error inquiry regarding font processing.
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