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.11k stars 796 forks source link

Cascadia SemiLight variant isn't a true fixed width font #681

Closed ZStoner closed 8 months ago

ZStoner commented 1 year ago

Cascadia family version

2111.001

Cascadia family variant(s)

Cascadia Mono (the version without ligatures)

Font file format(s)

Windows Terminal included version (TTF (variable))

Platform

Windows

Other Software

Visual Studio Code

What happened?

I seem to notice that only the Cascadia SemiLight variants (Code or Mono) may render extended characters in variable width. A good character to practice with is the checkmark character [] (Char Hex: 0x2713).

Traditionally, I've been a Consolas font user. But I noticed that when viewing the VSCode settings.json file, some of the characters didn't vertically line up properly.

Then I switched to use Cascadia Mono. I generally didn't like it because the default stroke width is slightly thicker than any other Fixed-Width font I've used. ☹️

After this, I switched to use Cascadia Mono SemiLight. This had a much more reasonable font thickness for its default stroke width. However, the SemiLight variant appears to have the same variable-width problems with certain characters... even worse than in Consolas (which is subtle in comparison).

ONLY the SemiLight variants have this problem (regardless if it's Code or Mono). All of the other published variants display proper fixed width characters.

Note: I have not reviewed the Cascadia PowerLine (PL) versions.


All of the examples below are using the following Markdown table text for the telemetry.telemetryLevel setting in the master settings.json file. For me, this text was located on lines 16-23 in settings.json. And all snips are using editor.fontSize: 12 and no font weight (editor.fontWeight: "")

Raw Text and Screen snips from VS Code under different font variants... Color Theme used: One Dark Pro Darker.


Issue/Question:

cormullion commented 1 year ago

I think these are two different fonts:

Cascadia SemiLight variant isn't a true fixed width font · Issue #681 · microsoftcascadia-code

aaronbell commented 8 months ago

I'm guessing this issue is due to the system not locating the SemiLight and falling back to a different font.