Skip to content

Turn off contextual alternates in the terminal - #1841

Merged
benjaminleonard merged 2 commits into
mainfrom
fix-calt-terminal
Dec 8, 2023
Merged

benjaminleonard merged 2 commits into
mainfrom
fix-calt-terminal

Conversation

@benjaminleonard

@benjaminleonard benjaminleonard commented Dec 7, 2023 •

Copy link
Copy Markdown
Contributor

Fixes #1840

Context – many years ago when we cut a new version of the typeface, we (I) thought it might be cute to include the contextual alternate so that "Oxide" or "Ox" would look more brand-like when typed in the console. It's not cute, it's stupid, and that's my cross to bear.

This fixes the issue through an update to the type styles in @oxide/design-system. I've also merged in the stylistic sets we're using for the ASCII diagrams on the website, but these don't interfere with regular usage.

@vercel

vercel Bot commented Dec 7, 2023 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
console ✅ Ready (Inspect) Visit Preview Dec 8, 2023 0:25am

return (
<>
<div className="h-full w-[calc(100%-3rem)]" ref={terminalRef} />
<div className="h-full w-[calc(100%-3rem)] text-mono-code" ref={terminalRef} />

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically the terminal is styled inline with some values passed to xterm.js. By including text-mono-code here it's also adding a bunch of styles that are ignored/overriden by those inline styles, but the font-feature-settings come with it, so it's probably the easiest and best fix here.

@benjaminleonard
benjaminleonard merged commit 48da3e1 into main Dec 8, 2023
@benjaminleonard
benjaminleonard deleted the fix-calt-terminal branch December 8, 2023 14:40

This branch was successfully deployed

1 active deployment
Preview — 9a832223 Deployed Dec 8, 2023 by vercel[bot]
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 this pull request may close these issues.

Typing "oxide" into an instance's serial console renders the echoed text as "0×ide"

2 participants