I suspected as much but it is nice to get it confirmed.
See https://bugs.openjdk.java.net/browse/JDK-6407157
I've added a link there to this discussion so we can consider it.
Most likely a public API would work only with a java.awt.Font
and you would have to wrap it in a FontUIResource yourself.
Hi Phil,
we use it precisely for the purpose for which it was invented and
is now used in JDK’s WindowsLookAndFeel (see lines 2294-2301).
The only difference is that we use it in JGoodies Windows L&F.
Here you can find our usage (lines 338-376):
https://java.net/projects/looks/sources/svn/content
> sun.font.FontUtilities.getCompositeFontUIResource(Font)
The first line of the javadoc comment in the source code says :
* This method is provided for internal and exclusive use by Swing.
And previous refactoring has moved it so that it's no longer even
on the same class as when it was fir
Resending the question about sun.font.FontUtilities to 2d-dev alias.
Thanks,
Alexandr.
On 7/27/2015 4:24 PM, Andrej Golovnin wrote:
Hi Alexander,
in our application we make use of
sun.font.FontUtilities.fontSupportsDefaultEncoding(Font)
sun.font.FontUtilities.getCompositeFontUIResource(Fo