Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cascadia Mono shouldn't use contextual alternate for x #285

Closed
Kwpolska opened this issue May 30, 2020 · 3 comments · Fixed by #304
Closed

Cascadia Mono shouldn't use contextual alternate for x #285

Kwpolska opened this issue May 30, 2020 · 3 comments · Fixed by #304

Comments

@Kwpolska
Copy link

I was working with a third-party service that provided me with a URL of this form:

https://example.com/1234x5678.png   (1 2 3 4 x 5 6 7 8)

I saw this URL in Windows Terminal, which defaults to Cascadia Mono. The way this URL displayed was this:

https://example.com/1234×5678.png

This made me think the third-party service is using × (U+00D7 MULTIPLICATION SIGN) instead of the usual letter x (U+0078 LATIN SMALL LETTER X). This confusion is not something I want from a terminal. In my opinion, the contextual alternate should only be in Cascadia Code.

Here’s a sample (in Word, with ligatures and contextual alternates enabled):

image

And in Windows Terminal:

image

@DHowett
Copy link
Member

DHowett commented May 30, 2020

Good catch. Thanks!

@aaronbell
Copy link
Collaborator

Fair enough :). I don't think, though, that this is a "Code" vs "Mono" thing, though, as the same situation could happen in either case. I'll disable the code entirely for now until we figure out a better way to implement it.

@Kwpolska
Copy link
Author

Kwpolska commented Jun 1, 2020

Yeah, perhaps getting rid of this feature would be better for both fonts. (Then again, I don’t ever use ligature fonts for programming, precisely because I don’t like being tricked by my fonts, so I can’t answer for Code.)

DHowett pushed a commit that referenced this issue Jun 29, 2020
This major update adds a weight range to Cascadia Code. This font is now
being built as a Variable Font, which enables users to select the
perfect weight for their preference. 

The weight range now extends from ExtraLight (200) to Bold (700), with
the current Regular set at 500 (400 in the font selector, 500
internally). As a variable font, OS / rendering engine support may vary.
Users running Windows 10 and Windows Terminal will have access to the
full range of font weights. Other applications may only have access to
the named instances (ExtraLight / Semilight / Light / Regular / SemiBold
/ Bold) depending on inbuilt support. 

Static instance OTFs are also provided. At current, static TTFs are not
built in this update, but it is something we will consider in the
future. 

Variation implementation tested on Windows and Mac, font hinted and
reviewed on high and low DPI devices. 

Closes #25 - weight axis added
Closes #43 - with weight addition, parenthesis width is preserved 
Closes #284 - ligature now broken for easier recognition
Closes #90 - produced as a variable font
Closes #128 - MORE WEIGHTS 
Closes #285 - contextual code removed

Signed-off-by: Aaron Bell <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants