[Winmerge-svn] SF.net SVN: winmerge:[5788] branches/R2_10
Windows visual diff and merge for files and directories
Brought to you by:
christianlist,
grimmdp
From: <ki...@us...> - 2008-08-11 21:18:07
|
Revision: 5788 http://winmerge.svn.sourceforge.net/winmerge/?rev=5788&view=rev Author: kimmov Date: 2008-08-11 21:17:49 +0000 (Mon, 11 Aug 2008) Log Message: ----------- BUG: [ 2000996 ] Syntax coloring boldface not working in most fonts Modified Paths: -------------- branches/R2_10/Docs/Users/ChangeLog.txt branches/R2_10/Src/editlib/ccrystaltextview.cpp Modified: branches/R2_10/Docs/Users/ChangeLog.txt =================================================================== --- branches/R2_10/Docs/Users/ChangeLog.txt 2008-08-11 08:39:04 UTC (rev 5787) +++ branches/R2_10/Docs/Users/ChangeLog.txt 2008-08-11 21:17:49 UTC (rev 5788) @@ -33,6 +33,7 @@ BugFix: Editing line filters updated wrong filter (#2025130) BugFix: Could change syntax highlight mode when highlighting was disabled from options (#2027325) + BugFix: Boldfacing did work only for Courier font (#2000996) Translation updates: - Chinese Traditional (#2039929) Modified: branches/R2_10/Src/editlib/ccrystaltextview.cpp =================================================================== --- branches/R2_10/Src/editlib/ccrystaltextview.cpp 2008-08-11 08:39:04 UTC (rev 5787) +++ branches/R2_10/Src/editlib/ccrystaltextview.cpp 2008-08-11 21:17:49 UTC (rev 5788) @@ -2296,15 +2296,14 @@ CClientDC dc (GetDesktopWindow ()); m_lfBaseFont.lfHeight = -MulDiv (11, dc.GetDeviceCaps (LOGPIXELSY), 72); } - m_lfBaseFont.lfWeight = bBold && !_tcsnicmp (m_lfBaseFont.lfFaceName, _T ("Courier"), 7) ? FW_BOLD : FW_NORMAL; - m_lfBaseFont.lfItalic = (BYTE) (bItalic && !_tcsnicmp (m_lfBaseFont.lfFaceName, _T ("Courier"), 7)); + m_lfBaseFont.lfWeight = bBold ? FW_BOLD : FW_NORMAL; + m_lfBaseFont.lfItalic = (BYTE) bItalic; if (!m_apFonts[nIndex]->CreateFontIndirect (&m_lfBaseFont)) { delete m_apFonts[nIndex]; m_apFonts[nIndex] = NULL; return CView::GetFont (); } - } return m_apFonts[nIndex]; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |