HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML Forums › Technical questions / Troubleshooting › How to check when there is no temp folder to use the font cache ? › Reply To: How to check when there is no temp folder to use the font cache ?
September 14, 2020 at 09:00
#33963
The temp dir is needed not by PD4ML itself, but by the font subsystem of JVM.
java.awt.Font.createFont()
creates java.awt.Font
instance from a given byte array, but as a rule (obviously it is platform-dependent) it needs to create a corresponding font file in the temp dir. We cannot control the internal java.awt.Font.createFont()
logic, it is only possible to re-define temp dir location with java.io.tmpdir
system property.