Skip to content
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

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

Open
charredUtensil opened this issue Dec 6, 2021 · 5 comments

Comments

@charredUtensil
Copy link

charredUtensil commented Dec 6, 2021

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 charredUtensil changed the title Mono font has ligatures (fi, fl, ffi, ffl) that are only 1 character wide Mono font has ligatures (fi, fl, ff, ffi, ffl) that are only 1 character wide Dec 6, 2021
@jiridanek
Copy link

jiridanek commented Jul 11, 2022

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

@Scemist
Copy link

Scemist commented Jul 25, 2022

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

@charredUtensil
Copy link
Author

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.

@Nagidrop
Copy link

Nagidrop commented Oct 3, 2024

Nerd Fonts has patched Overpass Mono with the fi, fl, and ldot ligatures removed to keep it truly monospaced. You can download it from their website

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

No branches or pull requests

4 participants