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

Switch to a native code font stack #612

Merged
merged 7 commits into from
May 15, 2018

Conversation

davidfischer
Copy link
Contributor

This swaps the existing monospace font stack to use a native font stack (a list of fonts where some are already on the user's computer).

  • We were including Inconsolata but it didn't appear to be used. I removed it.
  • The previous native font stack was updated.

Fixes #524 (that's also where a lot of the previous discussion about this is).
Fixes #460.

@davidfischer davidfischer requested a review from jessetan April 16, 2018 23:52
@davidfischer
Copy link
Contributor Author

I can't exactly include a before and after as it depends on what fonts you have. Here's what it looks like with this change for me:

screen shot 2018-04-16 at 4 41 49 pm

Copy link
Contributor

@jessetan jessetan left a comment

Choose a reason for hiding this comment

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

The font stack itself looks good and works as intended on macOS and Windows as far as I've tested.

Remarks:

  • Font change is not applied to parsed-literal blocks (section 3.4.5 of demo docs), maybe move font-family from div[class^='highlight'] pre to pre.literal-block, div[class^='highlight']
  • Font change is not applied to option list (section 4.1.3 of demo docs). The font of pre, code, .rst-content tt, .rst-content code, kbd, samp is set to monospace by _reset.sass, I think all of these can use the code font.
  • Changelog should document this as a new feature

@davidfischer
Copy link
Contributor Author

Good catches.

@davidfischer
Copy link
Contributor Author

I have made the requested changes.

@Blendify Blendify requested a review from agjohnson April 17, 2018 18:44
Copy link
Contributor

@jessetan jessetan left a comment

Choose a reason for hiding this comment

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

LGTM :shipit:

@@ -17,6 +17,8 @@ Fixes
Other Changes
--------------

* Modified native font stack (#612)
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe mention this only applies to code: "Changed code and literals to use a native font stack"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do.

@davidfischer davidfischer merged commit 6c62b40 into master May 15, 2018
@stsewd stsewd deleted the davidfischer/native-code-font-stack branch January 2, 2019 23:39
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.

2 participants