FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Override font for .sig for consistency with other code blocks by Kwpolska · Pull Request #121 · python/python-docs-theme · GitHub

Repository navigation

Override font for .sig for consistency with other code blocks - #121

Merged
JulienPalard merged 1 commit into
python:mainfrom
Kwpolska:patch-1
Apr 18, 2023
Merged

JulienPalard merged 1 commit into
python:mainfrom
Kwpolska:patch-1

Conversation

Copy link
Copy Markdown
Contributor

The basic.css Sphinx stylesheet introduces a .sig rule, which sets some monospace fonts for the signature. The pydoctheme.css stylesheet has its own list of fonts, applied to some other elements, but not .sig. The result is an inconsistency on Windows systems with both Cascadia Mono and Consolas installed (I believe that happens in a default Windows 11 install). Compare the glyphs for 64 in the function signature and in the code block below it:

ghost commented Mar 25, 2023 •
edited by ghost
Loading

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

Copy link
Copy Markdown
Member

Would you mind showing the "before" and "after" screenshots of how it looks like with/without this change? Thank you.

Copy link
Copy Markdown
Contributor Author

Sure. Before on the left, after on the right:

pradyunsg mentioned this pull request Apr 17, 2023
JulienPalard merged commit aaca238 into python:main Apr 18, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

4 participants


Back | FazBrowse Home | New Git URL