Author |
Topic |
|
SvenC
Tomato Guru
Germany
339 Posts |
Posted - Nov 16 2007 : 05:00:43 AM
|
Hi,
can we change the background color of the current line? For me it display in a medium dark grey. I would like to use lighter color.
I worked with the dotted box quite a while but it got in the way with lots of _ names like _tcsXXX or class property names ending on _. The underscore is always "overprinted" by the dotted box.
It might be nice if the dotted box could be extended by one pixel down, so that an underscore would just be visible.
-- SvenC |
|
feline
Whole Tomato Software
United Kingdom
19021 Posts |
Posted - Nov 16 2007 : 07:17:17 AM
|
Use the VA option:
VA Options -> Advanced -> Display -> Highlight current line * Dotted box * Solid box * Foreground and background
and in the IDE font and colours setting change / set the colour for "Current Line (VA X)" |
zen is the art of being at one with the two'ness |
|
|
SvenC
Tomato Guru
Germany
339 Posts |
Posted - Nov 16 2007 : 10:39:36 AM
|
Wow - that is a cool IDE integration A new Display Item in Fonts and Colors. Would have never spotted that one. Might be worth a short indication/explanation in the ballon tooltip when you configure that VAX option.
What do you think about my suggestion to draw the dotted rectangle one pixel bigger in height, so that the bottom line is one pixel below underscore characters?
-- SvenC |
Edited by - SvenC on Nov 16 2007 10:41:08 AM |
|
|
holedigger
Whole Tomato Software
145 Posts |
Posted - Nov 16 2007 : 10:48:14 AM
|
Which IDE and font are you using? I'm not seeing the issue with the dotted rectangle.
|
Whole Tomato Software |
|
|
SvenC
Tomato Guru
Germany
339 Posts |
Posted - Nov 16 2007 : 11:26:21 AM
|
Hi holedigger,
I use "Courier New" in VS2005 - and yes, that is the problem.
I changed to Courier and other fixed sized fonts. All other fonts display the underscore at least one pixel higher, but unfortunately I like "Courier New" best. It also displays much better when using the "stable symbols in italic" feature. The other fonts to "override" each other a bit when shown in italic.
I am just downloading a font editor to create my personalized "Courier New"
-- SvenC |
|
|
SvenC
Tomato Guru
Germany
339 Posts |
Posted - Nov 16 2007 : 12:04:21 PM
|
Now I am using the new and improved "Courier New_" and I do see the underscore inside the dotted rectangle. Thanks holedigger for pointing me into the correct direction.
-- SvenC |
|
|
holedigger
Whole Tomato Software
145 Posts |
Posted - Nov 16 2007 : 3:14:24 PM
|
No problem. I tried using Courier New, and the underscores were one pixel within the border (ie, touching the border). Yours were overlapping? What size were you using?
btw, I've been very happy with the Consolas font. It's the first font that I was happy with how italics are displayed.
|
Whole Tomato Software |
|
|
SvenC
Tomato Guru
Germany
339 Posts |
Posted - Nov 22 2007 : 3:57:39 PM
|
Hi holedigger,
I use size 9. The key might be that my laptop has a 1920*1200 pixel display on 17" and I changed the DPI setting to 120 DPI which causes all fonts to be painted bigger. There are many apps out there which do not take custom DPI settings into account when doing their custom drawing. The default DPI setting on Window is 96 an I think most devs do not test with different settings. It is changing because more and more of those high DPI displays are available at reasonable prices.
I tried consolas but like Courier New better and Courier New_ best
-- SvenC |
Edited by - SvenC on Nov 22 2007 3:58:13 PM |
|
|
SvenC
Tomato Guru
Germany
339 Posts |
Posted - Nov 22 2007 : 4:20:27 PM
|
Just double checked: size 10 does not cause the "overprinting" with standard Courier New but size 9 does. So just bad luck to having switched to that combination... |
|
|
feline
Whole Tomato Software
United Kingdom
19021 Posts |
Posted - Nov 23 2007 : 10:01:38 AM
|
Which OS are you using?
I have VS2005, win2k here, using "Courier New" size 9 and DPI set to 120, and I am not seeing this problem. |
zen is the art of being at one with the two'ness |
|
|
SvenC
Tomato Guru
Germany
339 Posts |
Posted - Nov 23 2007 : 3:04:56 PM
|
Hi feline,
I use Windows Server 2003 with SP2 and VS 2005 SP1.
I just tripple checked and I guess I have the difference:
Enable the VAX option "Stable symbols in italics". Now all parts which are italicized seem to print their underscore one pixel lower. For me _T() and _tcslen and so on qualify as stable symbols where the underscore is overprinted. Using names of my own with an underscore are OK.
Can you verify that?
How is the size of the rectangle calculated? I am not that knowledgable when it comes to font metrics. Are there any APIs which return the maximum height of a font or of a given text for a specific font?
Even if that could be fixed I would put this on a low priority...
-- SvenC |
|
|
feline
Whole Tomato Software
United Kingdom
19021 Posts |
Posted - Nov 23 2007 : 5:06:52 PM
|
*ah* easy when you know where to look. I am seeing the same problem with default DPI under win2k.
case=10091 |
zen is the art of being at one with the two'ness |
|
|
|
Topic |
|