Skip to content

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

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

Merged
merged 1 commit into from
Apr 18, 2023
Merged

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

merged 1 commit into from
Apr 18, 2023

Conversation

Kwpolska
Copy link
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:

image

@ghost
Copy link

ghost commented Mar 25, 2023

All commit authors signed the Contributor License Agreement.
CLA signed

@Mariatta
Copy link
Member

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

@Kwpolska
Copy link
Contributor Author

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

image

@pradyunsg pradyunsg mentioned this pull request Apr 17, 2023
@JulienPalard JulienPalard merged commit aaca238 into python:main Apr 18, 2023
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