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

doc: better font stack for monospace in docs #21036

Closed
wants to merge 1 commit into from

Conversation

silverwind
Copy link
Contributor

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

There appear to be rendering issues with inconsistent glyph width when using the Monaco font on non-macOS machines. This change updates the native CSS font stack to use the same font stack as Boostrap does, minus the Monaco font.

Before:
before

After:
after

There appear to be rendering issues with inconsistent glyph width when
using the Monaco font on non-macOS machines. This change updates the
native CSS font stack to use the same font stack as Boostrap does, minus
the Monaco font.
@silverwind silverwind added the doc Issues and PRs related to the documentations. label May 30, 2018
Copy link
Member

@devsnek devsnek left a comment

Choose a reason for hiding this comment

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

might also wanna throw FiraCode in there as a nice treat for those who have it

@silverwind
Copy link
Contributor Author

silverwind commented May 30, 2018

might also wanna throw FiraCode in there as a nice treat for those who have it

Hmm, I'm a bit reluctant on that one because of its ligatures. Should we take it as consent that if a user has that font installed, they want ligatures?

@Trott
Copy link
Member

Trott commented May 31, 2018

@nodejs/website

@fhemberger
Copy link
Contributor

@Trott LGTM!

@silverwind
Copy link
Contributor Author

Landed in 0baad8f, might be something to backport later.

@silverwind silverwind closed this May 31, 2018
@silverwind silverwind deleted the api-font-monospace branch May 31, 2018 13:08
silverwind added a commit that referenced this pull request May 31, 2018
There appear to be rendering issues with inconsistent glyph width when
using the Monaco font on non-macOS machines. This change updates the
native CSS font stack to use the same font stack as Boostrap does, minus
the Monaco font.

PR-URL: #21036
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Yazhong Liu <[email protected]>
Reviewed-By: Gus Caplan <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
fhemberger added a commit to nodejs/nodejs.org that referenced this pull request May 31, 2018
fhemberger added a commit to nodejs/nodejs.org that referenced this pull request May 31, 2018
addaleax pushed a commit that referenced this pull request Jun 1, 2018
There appear to be rendering issues with inconsistent glyph width when
using the Monaco font on non-macOS machines. This change updates the
native CSS font stack to use the same font stack as Boostrap does, minus
the Monaco font.

PR-URL: #21036
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Yazhong Liu <[email protected]>
Reviewed-By: Gus Caplan <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
@MylesBorins MylesBorins mentioned this pull request Jun 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Issues and PRs related to the documentations.
Projects
None yet
Development

Successfully merging this pull request may close these issues.