[OpenJDK 2D-Dev] RFR: 8055463: Needs public API allowing full access to font collections in Font.createFont()
Phil Race
philip.race at oracle.com
Thu Mar 10 22:53:48 UTC 2016
https://bugs.openjdk.java.net/browse/JDK-8055463
http://cr.openjdk.java.net/~prr/8055463/
Proposal is to add two new methods in the Font class paralleling the
existing ones
that return only a single font.
Font[] createFont(File)
Font[] createFont(InputStream)
I tried to make the single & multiple code be shared as much as possible
to avoid duplication and I eliminated code in the OSX sub-class which
seemed to be a pointless copy of the superclass.
The test checks the various assertions I intend by probing for platform
fonts.
-phil.
More information about the 2d-dev
mailing list