When using a monospaced font with no inherent defined
bold face, bold regions of text render wider than the
same text in the normal face.
I believe this is down to the windows API returning
font glyphs which are wider, automatically scaled from
the chosen font.
This upsets alignment in sourcecode, the primary reason
for using a monospaced font.
Attached is an example ; the font is ProggyCleanTT
(www.proggyfonts.com) drawn at 12 points. The upper
text is from NotePad2, the lower text is from PSPad.
On close examination, both render the bold and normal
glyphs identically, but PSPad spaces the bold exactly
the same way as it spaces normal text.
Visual Studio and SharpDevelop also exhibit this
behaviour ; although SharpDevelop has the extra wrinkle
that the onscreen cursor position is spaced as though
it was normal text, so it doesn't represent the actual
position of the cursor in the buffer.
Log in to post a comment.