Patch #2544 2008-08-17 13:12
pecan
Loggers font change patch- Download
- 2544-Loggers_font_c.patch (946 bytes)
Index: src/sdk/loggers.cpp
===================================================================
--- src/sdk/loggers.cpp (revision 5177)
+++ src/sdk/loggers.cpp (working copy)
@@ -87,6 +87,9 @@
style[critical].SetTextColour(*wxWHITE);
style[critical].SetBackgroundColour(*wxRED);
style[spacer].SetFont(small_font);
+
+ // Tell control about the font change
+ control->SetFont(default_font);
};
void TextCtrlLogger::Append(const wxString& msg, Logger::level lv)
@@ -234,6 +237,16 @@
style[spacer].font = small_font;
style[pagetitle] = style[caption];
+
+ // Tell control and items about the font change
+ control->SetFont(default_font);
+ for (int i=0; i<control->GetItemCount(); ++i)
+ {
+ wxFont font = control->GetItemFont(i);
+ font.SetPointSize(size);
+ control->SetItemFont( i, font );
+ }//for
+
}
void ListCtrlLogger::Append(const wxString& msg, Logger::level lv)
History
pecan 2008-08-17 13:14
When the user changes Settings/Environment/view/log font, the logger control is never told about the font change.
So on the next write (log append), the log spacing and font is clipped or does not fill the font size space.
Discription and images:
http://forums.codeblocks.org/index.php/topic,8993.msg64811.html#msg64811
killerbot 2008-08-17 13:35
applied, thanks !!!
killerbot 2008-08-17 15:41
applied, thanks !!!