|
From: <de...@us...> - 2009-10-12 01:49:46
|
Revision: 1876
http://iterm.svn.sourceforge.net/iterm/?rev=1876&view=rev
Author: delx
Date: 2009-10-12 01:49:38 +0000 (Mon, 12 Oct 2009)
Log Message:
-----------
Fixed incorrect vertical font positioning (#2765901)
Modified Paths:
--------------
trunk/Changelog
trunk/PTYTextView.m
Modified: trunk/Changelog
===================================================================
--- trunk/Changelog 2009-10-09 13:02:48 UTC (rev 1875)
+++ trunk/Changelog 2009-10-12 01:49:38 UTC (rev 1876)
@@ -1,3 +1,6 @@
+2009-10-12 delx
+ * Fixed incorrect vertical font positioning (#2765901)
+
2009-10-07 delx
* Fixed report bug link in about box (#2872981)
Modified: trunk/PTYTextView.m
===================================================================
--- trunk/PTYTextView.m 2009-10-09 13:02:48 UTC (rev 1875)
+++ trunk/PTYTextView.m 2009-10-12 01:49:38 UTC (rev 1876)
@@ -2473,12 +2473,13 @@
if(oldFont != theFont)
[attrib setObject:theFont forKey: NSFontAttributeName];
+ Y += lineHeight + [theFont descender];
NSString* crap = [NSString stringWithCharacters:&code length:1];
- [crap drawWithRect:NSMakeRect(X,Y+[theFont ascender], 0, 0) options:0 attributes:attrib];
+ [crap drawWithRect:NSMakeRect(X,Y, 0, 0) options:0 attributes:attrib];
// redraw the character offset by 1 pixel, this is faster than real bold
if(renderBold) {
- [crap drawWithRect:NSMakeRect(X+1,Y+[theFont ascender], 0, 0) options:0 attributes:attrib];
+ [crap drawWithRect:NSMakeRect(X+1,Y, 0, 0) options:0 attributes:attrib];
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|