src/Tools/jEdit/patches/render_context
author wenzelm
Tue, 21 Jun 2011 23:08:16 +0200
changeset 43504 4ffb4ca04fb8
child 43506 bf7400573617
permissions -rw-r--r--
avoid fractional font metrics, which makes rendering really ugly (e.g. on Linux);

diff -ru jEdit/org/gjt/sp/jedit/gui/PanelWindowContainer.java jEdit-patched/org/gjt/sp/jedit/gui/PanelWindowContainer.java
--- jEdit/org/gjt/sp/jedit/gui/PanelWindowContainer.java	2010-05-09 14:29:17.000000000 +0200
+++ jEdit-patched/org/gjt/sp/jedit/gui/PanelWindowContainer.java	2011-06-21 23:00:11.000000000 +0200
@@ -646,7 +646,7 @@
 			this.font = font;
 
 			FontRenderContext fontRenderContext
-				= new FontRenderContext(null,true,true);
+				= new FontRenderContext(null,true,false);
 			glyphs = font.createGlyphVector(fontRenderContext,text);
 			width = (int)glyphs.getLogicalBounds().getWidth() + 4;
 			//height = (int)glyphs.getLogicalBounds().getHeight();