avoid fractional font metrics, which makes rendering really ugly (e.g. on Linux);
authorwenzelm
Tue, 21 Jun 2011 23:08:16 +0200
changeset 43504 4ffb4ca04fb8
parent 43503 ca87677d2265
child 43505 0aca4edbfa99
child 43507 d566714a9ce1
avoid fractional font metrics, which makes rendering really ugly (e.g. on Linux);
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();