Author Topic: Exception on Change Editor Font  (Read 9980 times)

Offline Sebastian1989101

  • Single posting newcomer
  • *
  • Posts: 3
Exception on Change Editor Font
« on: November 04, 2010, 10:10:24 pm »
Hi Community,

i'am new on the Code::Blocks IDE and I have a question about the Mac OS X Version.. I know thats my english is very bad, excuse me about that.. everytime I've try to change the Font (explicit Font size) i got an unhandeld exception by the Program on Mac OS 10.6.. I need to change it becouse the font is very small on my MacBook for the Editor. I tryed the same on Windows 7 - thats work fine - but the Application Configuration files couldn't  be copy to Mac.. I hope anyone can help becouse the small font is very strange to work ...


greets, Sebastian

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Exception on Change Editor Font
« Reply #1 on: November 05, 2010, 07:38:23 am »
It's a wxWidgets-bug.

I don't know at the moment whether a workaround exists or not.
Might depend on your wxWidgets version.

What you can try, is to backup your default.conf on Mac and edit it manually.
Inside the <editor> ... </editor> tags, there should be <FONT> section, that can be edited.
On newly created default.conf's it's most likely not there, but you can try to add it manually.
On my debian-system it looks like (default-settings after opening the font-choser and closing it):

Code
		<FONT>
<str>
<![CDATA[Monospace 10]]>
</str>
</FONT>

I don't know whether it's a valid font-description on Mac, but I think it might be a starting point.
(Obviously the 10 is the font-size in points.)

But as told at the beginning: please backup your default.conf (at least if you have made any important changes), because editing it manually can always lead to errors !

Offline Sebastian1989101

  • Single posting newcomer
  • *
  • Posts: 3
Re: Exception on Change Editor Font
« Reply #2 on: November 05, 2010, 03:14:30 pm »
It's didn't work :(

The Editor ignore the font tags completly i've tryed the samle like on Windows (Font: Consolas) and i've tryed your string but nothing work the font is continue very small.
But this isn't the only bug on the IDE, many of my projects could not be build - no error, no resulution of the build progress. The output window told me something about Compiler Settings but I didn't found that:
""SomeApp - Debug" uses an invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]. Probably the toolchain path within the compiler options is not setup correctly?! Skipping..." - this message I've got on Mac and Windows. But the Font Size on Mac is in my oppinion the bigger fail the work :o


Thanks for some help, and sorry for my english know how ^^

Offline Sebastian1989101

  • Single posting newcomer
  • *
  • Posts: 3
Re: Exception on Change Editor Font
« Reply #3 on: November 06, 2010, 06:10:45 pm »
The build problem has been fixed. Maybe I should install any compiler before posting  :oops:

But the Font Size Problem still alive on Mac OS 10.6 - did this work on a older version of Code::Blocks??

MY0613

  • Guest
Re: Exception on Change Editor Font
« Reply #4 on: July 04, 2011, 04:49:57 am »
I also met this problem on Mac with ver.10.05.
have any work-round solution to change Editor Font Size?
Thanks for help.
 

cocoanatic

  • Guest
Re: Exception on Change Editor Font
« Reply #5 on: March 10, 2012, 03:27:06 pm »
I found a way to change editor's fontsize on MAC OS 10.6.8 using Code::Blocks 10.05

Open the default.conf file at ../USER/Library/Application Support/codeblocks/ with Texteditor.

Search for the FONT tag. It should be a tag inside the EDITOR tag and should look like this:

Code
<FONT><str><![CDATA[0;14;75;90;90;0;Courier;0]]></str></FONT>

The second argument is the font size. You should also change font to Courier. I found that other font styles won't display the right size.

Save and your done. Restart Code::Blocks.