Skip to content

Instantly share code, notes, and snippets.

@dfilimon
Created October 17, 2012 21:27
Show Gist options
  • Save dfilimon/3908335 to your computer and use it in GitHub Desktop.
Save dfilimon/3908335 to your computer and use it in GitHub Desktop.
Add this after Gview.java:380 to enjoy anti-aliased placeholder text in your ANTLRWorks diagram viewer.
g.setFont(new Font(AWPrefs.getEditorFont(), Font.PLAIN, 2 * AWPrefs.getEditorFontSize()));
((Graphics2D)g).setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
@dfilimon
Copy link
Author

The path is aw/org/antlr/works/visualization/graphics/panel/GView.java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment