# HG changeset patch
# User wenzelm
# Date 1308690496 -7200
# Node ID 4ffb4ca04fb88b1e3cd5084baa9f276c6daa4c77
# Parent  ca87677d2265207b3852d663d8f5edf57096507c
avoid fractional font metrics, which makes rendering really ugly (e.g. on Linux);

diff -r ca87677d2265 -r 4ffb4ca04fb8 src/Tools/jEdit/patches/render_context
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/Tools/jEdit/patches/render_context	Tue Jun 21 23:08:16 2011 +0200
@@ -0,0 +1,12 @@
+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();