kamalchopra / jsyntaxpane

Automatically exported from code.google.com/p/jsyntaxpane
0 stars 0 forks source link

More visually pleasing text rendering #59

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
Thanks for the "hint" :-)
I'll add this with next revision.

Original comment by ayman.al...@gmail.com on 18 Feb 2009 at 6:50

GoogleCodeExporter commented 9 years ago

Original comment by ayman.al...@gmail.com on 18 Feb 2009 at 9:21