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:
The
basic.css
Sphinx stylesheet introduces a.sig
rule, which sets some monospace fonts for the signature. Thepydoctheme.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 for64
in the function signature and in the code block below it: