Skip to content

Java apps

Samantha Glocker edited this page Oct 21, 2018 · 3 revisions

About Java apps and MacType

A clipbox is an imaginary box that's exactly the size of each character. So for example the clipbox of a j is differently shaped to that of an m. This matters because Java cuts each character exactly according to its clipbox before font hinting (trying to line each character up to the natural 'grid' of an LCD/LED screen).

Windows however, generates the clipbox after font hinting. Therefore Java apps generate characters slightly larger than their clipbox, which is not really ideal for modern screens.

For this reason, the fonts of many Java cropped weirdly by MacType, and look like this: image

The above is true for software such as IDEA and Picasa, and many others.

Now, we could force a fix that would fix the Java apps... however because we're now accommodating Java apps, the clipboxes would be wrong for all non-Java apps. (The best solution by the way would be for Java to fix their font rendering so it uses hinting and thus works properly with LCD/LED screens)

So as a workaround, MacType has a ClipBoxFix flag in you can use for just specific applications like this:

[Experimental@idea64.exe]
clipboxfix=1

This makes MacType use Java-style clipboxes, and stops the weird rendering for those apps, without touching other apps that render fonts for modern computers. (Sorry Oracle—but get with the program.)

For more information see ClipBoxFix.

Clone this wiki locally