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

Notification

Icon
Error

Cannot change font to Jetbrains Mono
GreenMoose
#1 Posted : Friday, January 31, 2020 7:14:45 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/17/2012(UTC)
Posts: 507

Thanks: 145 times
Was thanked: 66 time(s) in 64 post(s)
[v4.2.0.7]

Hi,

I cannot seem to change the font to Jetbrains Mono (which I use in rest of VStudio), other font seems to work fine. Any clues what's up with that?
Thanks.
Screencast
1 user thanked GreenMoose for this useful post.
michaelkroes on 2/2/2020(UTC)
Remco
#2 Posted : Friday, January 31, 2020 11:44:47 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,123

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
Off the top of my head, I can't say why this is happening at the moment. The handling of fonts is very 'under the hood' of the platform, so I'm not sure why this wouldn't work. We'll take a look and see if we can construct a more informed answer. It may be related to a property of the font itself.
1 user thanked Remco for this useful post.
GreenMoose on 2/1/2020(UTC)
michaelkroes
#3 Posted : Sunday, February 2, 2020 8:34:44 AM(UTC)
Rank: NCrunch Developer

Groups: Registered
Joined: 9/22/2017(UTC)
Posts: 306
Location: Netherlands

Thanks: 138 times
Was thanked: 73 time(s) in 69 post(s)
I'm not sure why this is happening. On a VM the exception doesn't occur. On another PC it does, but only on one instance of VS. A separate instance works just fine (both the same VS version and the font is the same). The exception is thrown inside the FontDialog.

Code:

System.ArgumentException: Only TrueType fonts are supported. This is not a TrueType font.
   at System.Drawing.Font.FromLogFont(Object lf, IntPtr hdc)
   at System.Windows.Forms.FontDialog.UpdateFont(LOGFONT lf)
   at System.Windows.Forms.FontDialog.RunDialog(IntPtr hWndOwner)
   at System.Windows.Forms.CommonDialog.ShowDialog(IWin32Window owner)


I can't think of a way to solve this error, it seems to be an interaction between windows and the font dialog.

Can you try to set it in a second instance of VS?
michaelkroes
#5 Posted : Sunday, February 2, 2020 8:58:09 AM(UTC)
Rank: NCrunch Developer

Groups: Registered
Joined: 9/22/2017(UTC)
Posts: 306
Location: Netherlands

Thanks: 138 times
Was thanked: 73 time(s) in 69 post(s)
You could also try to set it in the globalconfig.crunch.v3.xml file located under C:\Users\[user]\AppData\Roaming\NCrunch if all else fails. The font it self works just fine under NCrunch, it just doesn't like to be selected.

Code:

<GlobalConfiguration>
  <Settings>
    <TextOutputFont>JetBrains Mono, 8.249999pt, 0</TextOutputFont>
.....
GreenMoose
#4 Posted : Monday, February 3, 2020 9:21:29 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/17/2012(UTC)
Posts: 507

Thanks: 145 times
Was thanked: 66 time(s) in 64 post(s)
michaelkroes;14417 wrote:
Can you try to set it in a second instance of VS?

Yes, it worked when I changed it globally with VStudio Enterprise, and now it seems to work fine with Community Edition as well. Thanks!
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.031 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download