git-scm.com icon indicating copy to clipboard operation
git-scm.com copied to clipboard

Ligatures in monospace fonts hurt legibility of config keys

Open rybak opened this issue 2 years ago • 1 comments

The choice of the font in app/assets/stylesheets/variables.scss for the rule:

$fixed-width-font-family: Courier, monospace;

can make it harder to read some of the text in the documentation. This is especially applicable to the names of the configuration keys and to mentions of the shell commands, which people would usually edit in a text editor or in a shell with a monospace font. Fonts used by <code> tags are also affected.

URL for broken page

Example: https://git-scm.com/docs/git-config

Problem

Ligatures in the fonts for the Courier in CSS make it harder to read parts of the website.

Operating system and browser

Operating System: KDE neon 5.27 (≈ Kubuntu 22.04)
Browser: Firefox 119.0

Steps to reproduce

  1. Look at mentions of reflog in monospace font on page https://git-scm.com/docs/git-config#Documentation/git-config.txt-gcreflogExpireUnreachable screenshot of mention of gc.reflogExpireUnreachable in Git documentation

Other details

rybak avatar Nov 13 '23 22:11 rybak

https://github.com/ArtifexSoftware/urw-base35-fonts/issues/31

font-variant-ligatures: none; seems like a good fix, until various monospace fonts stop shipping this sort of ligature

sparr avatar Jan 08 '24 18:01 sparr