Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Test-Log Window Font breaks output
SeriousM
#1 Posted : Monday, April 14, 2014 9:09:07 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 4/2/2012(UTC)
Posts: 40
Location: Vienna

Thanks: 9 times
Was thanked: 3 time(s) in 3 post(s)
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

DECLARE @_returnVal_ int = null;

dbo.CS_LANGUAGES_GET


but is:



Is there a way around that issue?

Cheers
Remco
#2 Posted : Monday, April 14, 2014 9:23:52 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,982

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
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?
SeriousM
#3 Posted : Monday, April 14, 2014 11:15:40 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 4/2/2012(UTC)
Posts: 40
Location: Vienna

Thanks: 9 times
Was thanked: 3 time(s) in 3 post(s)
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?
Remco
#4 Posted : Monday, April 14, 2014 11:54:21 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,982

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
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?
SeriousM
#5 Posted : Monday, April 14, 2014 11:59:55 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 4/2/2012(UTC)
Posts: 40
Location: Vienna

Thanks: 9 times
Was thanked: 3 time(s) in 3 post(s)
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!
Remco
#6 Posted : Tuesday, April 15, 2014 2:54:08 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,982

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
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
SeriousM
#7 Posted : Tuesday, April 15, 2014 11:00:48 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 4/2/2012(UTC)
Posts: 40
Location: Vienna

Thanks: 9 times
Was thanked: 3 time(s) in 3 post(s)
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?
SeriousM
#8 Posted : Tuesday, April 15, 2014 2:29:32 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 4/2/2012(UTC)
Posts: 40
Location: Vienna

Thanks: 9 times
Was thanked: 3 time(s) in 3 post(s)
It seems that your TestBuild creates sometimes (cant reproduce but it happend 3 times already) this error:

Remco
#9 Posted : Wednesday, April 16, 2014 3:12:57 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,982

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
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
1 user thanked Remco for this useful post.
SeriousM on 4/16/2014(UTC)
SeriousM
#10 Posted : Wednesday, April 16, 2014 9:08:58 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 4/2/2012(UTC)
Posts: 40
Location: Vienna

Thanks: 9 times
Was thanked: 3 time(s) in 3 post(s)
Wonderful!! That worked like a charm! Thank you :)

/edit: I don't know if anything is broken but I can see underscores now
Remco
#11 Posted : Wednesday, April 16, 2014 9:14:38 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,982

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
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.
SeriousM
#12 Posted : Wednesday, April 16, 2014 9:16:17 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 4/2/2012(UTC)
Posts: 40
Location: Vienna

Thanks: 9 times
Was thanked: 3 time(s) in 3 post(s)
Remco;5683 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 :)
1 user thanked SeriousM for this useful post.
Remco on 4/16/2014(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.069 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download