[Konsole-devel] [Bug 131770] no bold is displayed in konsole

Kurt V.Hindenburg kurt.hindenburg at kdemail.net
Sun Aug 6 04:42:03 UTC 2006


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=131770         
kurt.hindenburg kdemail net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From kurt.hindenburg kdemail net  2006-08-06 06:42 -------
SVN commit 570194 by hindenburg:

Fix to display bold.  For those for whom bold worked in KDE 3.5.3, this is
the regression fix.  For those, like me, for whom bold never work, this is
the fix.  
No patch is needed for KDE4 as bold works there.

BUG: 131770  


 M  +1 -1      TEScreen.cpp  
 M  +12 -0     TEWidget.cpp  


--- branches/KDE/3.5/kdebase/konsole/konsole/TEScreen.cpp #570193:570194
 @ -501,7 +501,7  @
 void TEScreen::effectiveRendition()
 // calculate rendition
 {
-  ef_re = cu_re & (RE_UNDERLINE | RE_BLINK);
+  ef_re = cu_re & (RE_UNDERLINE | RE_BLINK | RE_BOLD);
   if (cu_re & RE_REVERSE)
   {
     ef_fg = cu_bg;
--- branches/KDE/3.5/kdebase/konsole/konsole/TEWidget.cpp #570193:570194
 @ -677,6 +677,18  @
   }
 
   // Paint text
+  if (attr->r & RE_BOLD)
+  {
+    QFont currentFont = paint.font();
+    currentFont.setBold(true);
+    paint.setFont( currentFont );
+  } else {
+    QFont currentFont = paint.font();
+    currentFont.setBold(false);
+    paint.setFont( currentFont );
+  }
+
+
   if (!(blinking && (attr->r & RE_BLINK)))
   {
     // ### Disabled for now, since it causes problems with characters



More information about the konsole-devel mailing list