[prev in list] [next in list] [prev in thread] [next in thread] 

List:       konsole-devel
Subject:    [Konsole-devel] [Bug 131770] no bold is displayed in konsole
From:       "Kurt V.Hindenburg" <kurt.hindenburg () kdemail ! net>
Date:       2006-08-06 4:42:03
Message-ID: 20060806044203.19596.qmail () ktown ! kde ! org
[Download RAW message or body]

------- 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
_______________________________________________
konsole-devel mailing list
konsole-devel@kde.org
https://mail.kde.org/mailman/listinfo/konsole-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic