Hi,
The following code snippet shows the code to get the platform (system)
rendering hints for desktop fonts. This will get a more visually pleasing
look for rendering the font of the pane. It would be fine, if JSyntaxPane
would support a flag for switching on system/text-antialiasing support.
Thanks for your brilliant pane.
Greetings from Germany
Werner
private static RenderingHints sysHints;
static
{
sysHints = null;
try
{
Toolkit toolkit = Toolkit.getDefaultToolkit();
Map map = (Map) toolkit.getDesktopProperty("awt.font.desktophints");
sysHints = new RenderingHints(map);
}
catch (Throwable t) {}
}
Original issue reported on code.google.com by werner.h...@gmail.com on 17 Feb 2009 at 2:09
Original issue reported on code.google.com by
werner.h...@gmail.com
on 17 Feb 2009 at 2:09