[OpenJDK 2D-Dev] RFR: 8252199: Reimplement support of Type 1 fonts without MappedByteBuffer

Jayathirth D V jdv at openjdk.java.net
Sun Sep 20 13:30:33 UTC 2020

On Fri, 18 Sep 2020 20:23:25 GMT, Phil Race <prr at openjdk.org> wrote:

> I  changed it to read the file into a ByteBuffer to avoid the problem that we can't control when NIO free's the mmaped
> buffer. This is a problem for leaking tmp Type1 font files when using createFont and I thought maybe we could just
> change that case, but Type 1 fonts are getting very rare. Neither Mac nor Windows ship them and Mac at least does not
> support them at all, and current Linuxes seem to be almost all TTF and OTF fonts. Also T1 fonts are small, so any
> minimal peformance benefit is not worth it. There isn't a specific regression test. I verified this on Ubuntu 20.04
> which has at least a (very) few Type 1 fonts.

Marked as reviewed by jdv (Reviewer).


PR: https://git.openjdk.java.net/jdk/pull/258

More information about the 2d-dev mailing list