Its not headless vs headful. Its both. JDK by specification requires
support
of Type 1 fonts. There are APIs that explicitly accept them.
OS X has no native support for these. Without freetype (or in
the case of Oracle JDK) you can't pass JCK and APIs would be broken.
-phil.
On 10/25/2013 9:20 AM, David DeHaven wrote:
You might have managed to build, but there will be some things that do not run
without freetype.
You could try using java.awt.Font.createFont(..) with a Postscript Type 1 font
- this
doesn't need a head if you pass in -Djava.awt.headless=true - and I am 99.999%
sure you'll get an unsatisfied link error or similar.
The strictures about freetype on Mac is coming from the X11 install.
No one could produce a build based on using that which is guaranteed
to work on any one else's system
The X11 toolkit is no longer built, as of last night:
https://bugs.openjdk.java.net/browse/JDK-8025673
Now LWCToolkit is used in both headless and headful modes, there are no other
native toolkits to choose from.
I'm wondering if there's a code path that is broken now... do we have headless
font tests lingering around somewhere?
-DrD-