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

Weird "fi" character spacing #3

Closed
bengott opened this issue Sep 26, 2016 · 1 comment
Closed

Weird "fi" character spacing #3

bengott opened this issue Sep 26, 2016 · 1 comment

Comments

@bengott
Copy link

bengott commented Sep 26, 2016

When there's a word containing "fi", the "f" and the "i" are jammed together to fit into the width of one character, which makes it look ugly and a little hard to read. Seems strange that a monospaced font would do something like this?
weird-font-spacing

@bengott
Copy link
Author

bengott commented Sep 28, 2016

For anyone coming across this issue...

@SachaG educated me about ligatures and how to disable them via CSS. The "fi" ligature can be disabled using any one of the following:

font-feature-settings: "liga" 0;
font-feature-settings: "liga" off;
font-variant-ligatures: none;
font-variant-ligatures: no-common-ligatures;

I prefer the last one, just to be super specific and explicit about what's being done.
https://developer.mozilla.org/en-US/docs/Web/CSS/font-feature-settings
https://developer.mozilla.org/en-US/docs/Web/CSS/font-variant-ligatures

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

1 participant