Freetype on Mac OS X?

David DeHaven david.dehaven at oracle.com
Fri Oct 25 09:13:54 PDT 2013


> Hi there mac porters :-)
> 
> When I fiddled with the build system for using freetype in the OpenJDK builds, it turned out a couple of inconsistencies regarding freetype on macosx.
> 
> The current build system actually requires freetype to be present when building. When building libfontmanager, we include freetypeScaler.c (which I think is the only consumer of freetype) and link with -lfreetype, on macosx as well as on linux and solaris.
> 
> However, I'm not entirely sure this is correct. Evidence (like the build documentation :)) seems to indicate that freetype is not/should not be used on macosx, not even for OpenJDK. (It's never used when building the closed product.)

I was wondering the same thing, since the native toolkit has all the fontmanager methods and is (now) used in all combinations of open or closed and headless or headful.


> I tried out a simple patch which excludes freetypeScaler.c when building on macosx, and stops linking with freetype. It compiles without issues, but I have no readily access to a "headful" Mac to try this on, nor do I really know what tests to run to check of libfontmanager works as expected.
> 
> I'd appreciate some input on this.
> 
> Here is the patch I used:

I'll give it a try when I get a chance, probably early next week at this point :(

We have some more cleanup to do now that X11 is disabled. It would be really wonderful to completely remove all the X11 dependencies, perhaps this can be done as part of JDK-8003900.
https://bugs.openjdk.java.net/browse/JDK-8003900

I've no idea if this can be done for the first release of jdk8 now since we're officially past ZBB.

-DrD-



More information about the macosx-port-dev mailing list