Overpass icon indicating copy to clipboard operation
Overpass copied to clipboard

Mono font has ligatures (fi, fl, ff, ffi, ffl) that are only 1 character wide

Open charredUtensil opened this issue 3 years ago • 4 comments

This is true at least for the version currently on Google Fonts:

https://fonts.google.com/specimen/Overpass+Mono?query=overpass&preview.text=I%20offer%20fine%20affluent%20foxes%20no%20affixed%20fleas.&preview.text_type=custom

charredUtensil avatar Dec 06 '21 20:12 charredUtensil

From the user's point of view, you can tell your application to not use ligatures, using fontconfig, as described in https://wiki.archlinux.org/title/Font_configuration/Examples#Disable_ligatures_for_monospaced_fonts. That wiki says that Firefox does not respect this setting ;(

On the web, you can direct the browser using CSS, https://developer.mozilla.org/en-US/docs/Web/CSS/font-variant-ligatures

JetBrains Mono ships a NL (non-ligature) versions of the .ttf files. Maybe that's a worthwhile route to take, for user convenience. https://stackoverflow.com/questions/62195642/what-the-difference-between-jetbrains-mono-and-jetbrains-mono-nl

jiridanek avatar Jul 11 '22 08:07 jiridanek

I noticed this, it really happens. For 'fi' and 'fl' mainly, that contains many words like 'file' is really weird.

Scemist avatar Jul 25 '22 15:07 Scemist

This is still a bug, even if it can be disabled under certain circumstances. I cannot think of a single reason anyone would want these ligatures in a monospace font.

Other monospace "code" fonts that use ligatures tend to maintain the original width of characters. JetBrains Mono also doesn't have these typographic ligatures despite having the code ones.

charredUtensil avatar Jul 25 '22 15:07 charredUtensil

The https://github.com/RedHatOfficial/RedHatFont monospace variant does not suffer from this bug

https://fonts.google.com/specimen/Red+Hat+Mono?selection.family=Chathura&sidebar.open=true&preview.text=Neffnukala,%20ffikana&preview.text_type=custom

jiridanek avatar Jul 26 '22 10:07 jiridanek