[ 
https://issues.apache.org/jira/browse/FOP-2294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18151782#comment-18151782
 ] 

Niklas commented on FOP-2294:
-----------------------------

With the pull request for FOP-2651 
(https://github.com/apache/xmlgraphics-fop/pull/138), local file: fonts such as 
the arial.ttf of this report are passed to Java as files (Font.createFont(int, 
File)), so Java creates no tmp files for them.
Tested with this report's setup (TIFF, relative embed-url): no temporary font 
files, neither while running nor after exit. 

Fonts from other sources (jar, http, or a custom resolver) are still copied by 
Java; Java deletes those copies when the JVM shuts down normally (a shutdown 
hook in SunFontManager), but not when it is killed.

> [PATCH] Delete temp files before JVM exit
> -----------------------------------------
>
>                 Key: FOP-2294
>                 URL: https://issues.apache.org/jira/browse/FOP-2294
>             Project: FOP
>          Issue Type: Bug
>            Reporter: Simon Steiner
>            Priority: Major
>         Attachments: deletetifftmptrunk.patch, fop.xconf, test2.fo
>
>
> fop test2.fo -c fop.xconf -tiff out.tiff
> loads font in awt which creates tmp file not deleted before jvm exit



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to