News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Another font problem!Help me!

Started by Lev, May 19, 2015, 03:48:58 AM

Previous topic - Next topic

Lev

Yes!I want to change the font face of Build Messages! I had changed the font face of startherepage!



What makes me so sad is that I can't change the font of "Build Messages" in the same way!



I have not found the relative code which is used to set the font face of Build Messages!

I will appreciate U if U can tell me how to solve this problem .

Many Thanks!

stahta01

#1
I would start looking at TextCtrlLogger::UpdateSettings() in file loggers.cpp in folder src/sdk.

Edit: If you wish to add a spot in the GUI to change this font, I suggest here:
Settings -> Environment
Select "View" in left panel

FYI: I started searching on the info on this location in the xrc files then used the info in the xrc to go to a cpp file and to the CB config setting to another cpp file and so on.

Edit2: This line is my guess

wxFont default_font(size, fixed ? wxFONTFAMILY_MODERN : wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL);




Tim S.


C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Lev

Quote from: stahta01 on May 19, 2015, 04:09:51 AM
I would start looking at TextCtrlLogger::UpdateSettings() in file loggers.cpp in folder src/sdk.

Edit: If you wish to add a spot in the GUI to change this font, I suggest here:
Settings -> Environment
Select "View" in left panel

FYI: I started searching on the info on this location in the xrc files then used the info in the xrc to go to a cpp file and to the CB config setting to another cpp file and so on.

Edit2: This line is my guess

wxFont default_font(size, fixed ? wxFONTFAMILY_MODERN : wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL);




Tim S.

wxFont default_font(size, fixed ? wxFONTFAMILY_MODERN : wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_LIGHT,false, _T("Microsoft YaHei UI"));

it seems the code above in loggers.cpp is used to set the font face of Build Log!

It can't change the font face of Build messages!

Thank you for ur  timely reply!

Lev

Quote from: stahta01 on May 19, 2015, 04:09:51 AM
I would start looking at TextCtrlLogger::UpdateSettings() in file loggers.cpp in folder src/sdk.

Edit: If you wish to add a spot in the GUI to change this font, I suggest here:
Settings -> Environment
Select "View" in left panel

FYI: I started searching on the info on this location in the xrc files then used the info in the xrc to go to a cpp file and to the CB config setting to another cpp file and so on.

Edit2: This line is my guess

wxFont default_font(size, fixed ? wxFONTFAMILY_MODERN : wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL);




Tim S.

Thank you!

I made it!

Thank you again!

Lev

Quote from: stahta01 on May 19, 2015, 04:09:51 AM
I would start looking at TextCtrlLogger::UpdateSettings() in file loggers.cpp in folder src/sdk.

Edit: If you wish to add a spot in the GUI to change this font, I suggest here:
Settings -> Environment
Select "View" in left panel

FYI: I started searching on the info on this location in the xrc files then used the info in the xrc to go to a cpp file and to the CB config setting to another cpp file and so on.

Edit2: This line is my guess

wxFont default_font(size, fixed ? wxFONTFAMILY_MODERN : wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL);




Tim S.

The method you gave me works!