-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Conversation
There was a problem hiding this 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
fromdiv[class^='highlight'] pre
topre.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 tomonospace
by_reset.sass
, I think all of these can use the code font. - Changelog should document this as a new feature
Good catches. |
I have made the requested changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
docs/changelog.rst
Outdated
@@ -17,6 +17,8 @@ Fixes | |||
Other Changes | |||
-------------- | |||
|
|||
* Modified native font stack (#612) |
There was a problem hiding this comment.
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"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do.
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).
Fixes #524 (that's also where a lot of the previous discussion about this is).
Fixes #460.