python / python-docs-theme

Sphinx theme for Python documentation
Other
75 stars 58 forks source link

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

Closed Kwpolska closed 1 year ago

Kwpolska commented 1 year ago

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

cpython-cla-bot[bot] commented 1 year ago

All commit authors signed the Contributor License Agreement.
CLA signed

Mariatta commented 1 year ago

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

Kwpolska commented 1 year ago

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

image