Daily Usage Issues

Test-Log Window Font breaks output

Started by SeriousM on 9,330 views

Hi, the test-log uses a font that hides underscores for whatever reason. It's not that it is capped somehow because I can see "g"'s as well.

In this example the output should be
[h]
DECLARE @_returnVal_ int = null;

dbo.CS_LANGUAGES_GET
[/h]

but is:

External image

Is there a way around that issue?

Cheers
Hi, thanks for sharing this issue.

The font being used by NCrunch to render text is Courier New 8.25pt. I'm not aware of how to reproduce this issue. I assume it is somehow configuration or environment specific.

Does this appear for you if you create a new blank test project with a single test that writes an underscore to the console?

If you copy/paste the text into notepad, do the underscores show?

What is your current DPI setting?
Does this appear for you if you create a new blank test project with a single test that writes an underscore to the console?
> Yes, it appears even in blank projects.

If you copy/paste the text into notepad, do the underscores show?
> Yes it does.

What is your current DPI setting?
> I guess 96DPI? I never changed that and windows 7 is trying hard to hide this information.

Doesn't that happen to you as well?
I don't seem to see this issue at my end. I think there is a point of difference here that is causing the line height to be calculated incorrectly, cutting off the underscore. In the Courier New font, the underscore character sits below all other characters (including 'g' tails).

Can you think of anything unusual on your machine in regards to display or font settings? Do you have any colleagues with a similar machine setup that we may be able to test against?
My machine is basicly stock-like without any special changes.
Currently I'm the only one who uses NCrunch, others may join later.
Can you tell me the Setting where I can change the font-size? Or make it even changeable?

Thanks!
At the moment it isn't possible to customise the font or its size. The component is still very new, so such features don't exist yet.

I'm wondering if you'd like to try the build below? I've introduced a speculative fix in this build that changes the way the line height is calculated. I still haven't been able to reproduce the issue, but the existing calculation wasn't really right anyway, so hopefully this will do the trick.

http://downloads.ncrunch.net/NCrunch_GridNodeServer_2.6.0.13.msi
http://downloads.ncrunch.net/NCrunch_GridNodeServer_2.6.0.13.zip
http://downloads.ncrunch.net/NCrunch_VS2008_2.6.0.13.msi
http://downloads.ncrunch.net/NCrunch_VS2010_2.6.0.13.msi
http://downloads.ncrunch.net/NCrunch_VS2010_2.6.0.13.zip
http://downloads.ncrunch.net/NCrunch_VS2012_2.6.0.13.msi
http://downloads.ncrunch.net/NCrunch_VS2012_2.6.0.13.zip
http://downloads.ncrunch.net/NCrunch_VS2013_2.6.0.13.msi
http://downloads.ncrunch.net/NCrunch_VS2013_2.6.0.13.zip

There's quite a few changes in this build, it's basically an early test build of 2.6. If you do notice anything out of place, please do let me know as soon as you can.


Cheers,

Remco
Hmm, too bad, that didn't helped :(
Same font, underscore is still invisible.

Could you create me a build with a different mono-font or a much higher line-height to test things out?
It seems that your TestBuild creates sometimes (cant reproduce but it happend 3 times already) this error:

External image
Sorry, the 2.6.0.13 build included a change that completely broke the project synchroniser.

It seems to me that the ideal solution to the underscore problem is to make the output pane font configurable in the global NCrunch settings. A few people have requested this so it was already in the plan, but I don't see why the change can't be brought forward to also solve your problem.

I've prepared a new build including this change, along with a fix for the project synchroniser. Let me know how it goes!

http://downloads.ncrunch.net/NCrunch_GridNodeServer_2.6.0.15.msi
http://downloads.ncrunch.net/NCrunch_GridNodeServer_2.6.0.15.zip
http://downloads.ncrunch.net/NCrunch_VS2008_2.6.0.15.msi
http://downloads.ncrunch.net/NCrunch_VS2010_2.6.0.15.msi
http://downloads.ncrunch.net/NCrunch_VS2010_2.6.0.15.zip
http://downloads.ncrunch.net/NCrunch_VS2012_2.6.0.15.msi
http://downloads.ncrunch.net/NCrunch_VS2012_2.6.0.15.zip
http://downloads.ncrunch.net/NCrunch_VS2013_2.6.0.15.msi
http://downloads.ncrunch.net/NCrunch_VS2013_2.6.0.15.zip


Cheers,

Remco
Wonderful!! That worked like a charm! Thank you :)

/edit: I don't know if anything is broken but I can see underscores now

Edited

Excellent! I'm not sure why the underscores would suddenly start showing without any font changes, but we'll definitely take it :) I did a little research online and it seems as though missing underscores for Courier New can be a fairly common rendering problem that affects some systems. If it comes back, you should have ample opportunity to fix it now through the new config setting.
Remco wrote:Excellent! I'm not sure why the underscores would suddenly start showing without any font changes, but we'll definitely take it :) I did a little research online and it seems as though missing underscores for Courier New can be a fairly common rendering problem that affects some systems. If it comes back, you should have ample opportunity to fix it now through the new config setting.


The underscore shows up after changing the font, ofc :)

Post a reply

Log in to reply.