Hi,

Seemingly the baseline for string drawing in controls is one pixel too low. Maybe I'm seeing things, but this small patch for NSCell makes these strings center a little better. Some extra research might be necessary.

Cheers,

Michael

<nscell-prettytext.patch>
Index: NSCell.m
===================================================================
RCS file: /cvsroot/gnustep/gnustep/core/gui/Source/NSCell.m,v
retrieving revision 1.150
diff -u -r1.150 NSCell.m
--- NSCell.m	29 Nov 2003 00:46:41 -0000	1.150
+++ NSCell.m	10 Jan 2004 08:32:19 -0000
@@ -2098,6 +2098,7 @@
 			       _font, NSFontAttributeName,
 			       color, NSForegroundColorAttributeName,
 			       paragraphStyle, NSParagraphStyleAttributeName,
+		  	       [NSNumber numberWithFloat: -1.0], NSBaselineOffsetAttributeName,
 			       nil];
   RELEASE (paragraphStyle);
   return attr;
_______________________________________________
Bug-gnustep mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to