User forums > Using Code::Blocks

Monospace Font

(1/2) > >>

Alpha:
I have noticed that Ubuntu's default monospace font actually makes characters wider if they are bold.  For example, the following two comments would line up when I use Windows, but not when I use Ubuntu:
bold     // comment
not bold // comment

This is not exactly a Code::Blocks problem, but I was wondering if anyone had suggestions of what I could do about it (seeing a bolded if() not quite align properly is rather annoying).  Perhaps another font setting?

oBFusCATed:
Why don't you report this to ubuntu developers?

thomas:
A monospace font is not truly monospace when boldface is different from regular, if you ask me.

However, before complaining with them, you need to make sure this is really the bold variant, not a faux bold generated by... what's the backend, GTK/Cairo? If it's the latter, then it's just the "usual shit", and not something you can blame the font developers for. And, probably something one can't do about anything.

oBFusCATed:

--- Code: ---if       // comment
return   // comment
retur    // comment

--- End code ---
For me this is perfectly aligned on Centos 5.8...

Alpha:

--- Quote from: thomas on November 12, 2012, 11:42:31 am ---However, before complaining with them, you need to make sure this is really the bold variant, not a faux bold [...]

--- End quote ---
That would probably be the reason, if I had to guess, but I do not know how I would check.

I "fixed" the problem within Code::Blocks by switching the editor's font from its default setting of "Monospace" to "Liberation Mono" (now to see if I can do the same with system wide settings...).


--- Quote from: oBFusCATed on November 12, 2012, 09:00:19 am ---Why don't you report this to ubuntu developers?

--- End quote ---
I plan to do that as well.

Navigation

[0] Message Index

[#] Next page

Go to full version