microsoft / cascadia-code

This is a fun, new monospaced font that includes programming ligatures and is designed to enhance the modern look and feel of the Windows Terminal.
Other
25.16k stars 797 forks source link

Capital K throws off the spacing of words #573

Closed CoolDadTx closed 2 years ago

CoolDadTx commented 2 years ago

In my code I have the text value builder.HasKey. I'm using Cascadia-Code, 11 point. For this particular text the font removes a little over a letter of spacing on the left causing the text to no longer line up with the rest of the lines.

image

Removing the capital K fixes the issue.

image

Of course this isn't valid so that won't work. Some other letters have the same issue. For example Z causes the problem but M and P do not. Using Cascadia Code Light or Cascadia Code Semilight resolves the issue.

DHowett commented 2 years ago

In your screenshot, HasKey isn't even in Cascadia! The K has a very distinctive shape, which isn't present in your highlighted section of code.

This looks like it could be an editor configuration problem... what IDE is that?

CoolDadTx commented 2 years ago

It is Visual Studio 2019. The text editor is configured for Cascadia Code.

I agree the font wasn't right but it doesn't make sense why as the rest of the code around it was fine. Once I switched to Cascadia Code Light the problem has gone away. Switching back to Cascadia Code doesn't replicate the problem anymore.

aaronbell commented 2 years ago

Strange. Are you using the latest version of Cascadia Code? Or the previous version? And have you installed the variable version? Or the static instances?

CoolDadTx commented 2 years ago

Version is 2102.025

I just downloaded from Github and told Windows to install. I don't know what instance it installed from there.

aaronbell commented 2 years ago

Hi! Sorry for taking so long to follow up. In looking again at this, I wonder if there's something in your editor color theme that is causing a different font to be used. I thought initially there might be an issue with the Regular not being loaded, but I note that base is rendering correctly, but HasColumn is not. Maybe worth checking that out?

CoolDadTx commented 2 years ago

That's possible but given that the problem went away after I switched to another font and then back I suspect there was some sort of initialization issue when the font was loaded. I haven't seen it since.

aaronbell commented 2 years ago

Thanks for the update. Hopefully this is just a one-off issue. Cheers!