Investigate not using letter-spacing, to fix font kerning
See original GitHub issueI consider the use of letter-spacing
bad practice that should be discouraged. It changes the carefully crafted font character kerning, and replaces it with some arbitrary spacing value. It disregards the font author and does not even improve readability because of the uneven result.
The design specs on typography do not show any example of letter-spacing.
Consumers of this framework will need to override the styles in many places in order to achieve natural fonts.
Please remove letter-spacing
from the stylesheets.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:5
- Comments:29 (11 by maintainers)
Top Results From Across the Web
Keeping track of letter-spacing, some guidelines | CSS-Tricks
Use letter-spacing, not spacing characters However, on the web you want to avoid adding any extra glyphs—such as spacing characters—between ...
Read more >VS Code: change letter spacing (kerning) - Stack Overflow
For example, I'm using the following code in my settings to tighten up the letter spacing ever so slightly: { "editor.letterSpacing": -0.15 }....
Read more >Change the spaces between text - Microsoft Support
Change spacing between characters, kern fonts, stretch or scale text, and set line spacing.
Read more >font-kerning - CSS: Cascading Style Sheets - MDN Web Docs
The browser determines whether font kerning should be used or not. For example, some browsers will disable kerning on small fonts, ...
Read more >The effect of letter spacing on reading speed in central and ...
Reading speeds were calculated based on the RSVP exposure durations yielding 80% correctly read words. Letters were rendered in Courier, a fixed-width font....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The values are also off for a lot of components. For example, the letter-spacing from text-field input is listed as
0.04em
, but when I do a pixel-to-pixel comparison with spec, it should be0.00em
(normal).0.04em spacing:
Normal spacing:
I’m not saying there isn’t a need for it. For example,
.mdc-list
has a value of0.04em
but the accurate value is closer to0.0075em
. Also.mdc-list-item__secondary-text
should be0.01em
, not0.04em
.So either the MDC-Web’s math to calculate the spacing is wrong or the Material Guideline spec images are wrong.
@sgomes @traviskaufman Do you have any update on design guidance for this issue?