Hi,
I found why I not have result in same case.
When the font used in template is not inserted in document the result fail because can’t change the font used with another font.
When not work:
Caused by: java.io.FileNotFoundException: /home/florin/.docx4all/temporary embedded fonts/1725000830683-Cantarell Extra Bold.ttf (Nu există un astfel de fișier sau director)
Nu există un astfel de fișier sau director=No such file or directory
when work the report have another font from Serif family:
2024-08-30T09:59:37.377+03:00 WARN 164486 --- [nio-8080-exec-5] org.docx4j.fonts.RunFontSelector : Font 'Cantarell Extra Bold' is not mapped to a physical font.
With fonts included in document work every time, until now.
Now I investigate my office application how many fonts used for default document (save new documents with empty words/page):
LibreOffice |
TextMaker |
OnlyOffice |
Symbol |
SimSun |
Calibri |
Times New Roman |
Times New Roman |
Times New Roman |
Arial |
Arial |
Arial |
FreeSerif |
FreeSerif |
Cambia |
Liberation Serif |
|
|
FreeSans |
|
|
Where fonts FreeSerif and FreeSans was added by me in default template document.
So OnlyOffice have only Arial font in theme1.xml file from docx (is archive file) and change to FreeSans and I add only FreeSans in fontTable.xml (deleted Cambia, Calibri and Times New Roman), off course this modification was made manually. This docx I have in plan to use for the future, if work off course