benface / tailwindcss-typography

Tailwind CSS plugin to generate typography utilities and text style components
ISC License
245 stars 5 forks source link

Support font-feature-setting: 'kern' #10

Closed mapgrid closed 4 years ago

mapgrid commented 4 years ago

Since we have font-variant-* for most the the features that font-feature-setting covers, we could add one rule for kern without worrying about overwriting with other features:

.kern {
    font-feature-settings: 'kern';
    font-kerning: normal;
}

Happy to submit a PR.

benface commented 4 years ago

I'm not sure I understand what this does, could you give me an example?

mapgrid commented 4 years ago

Here you go: https://developer.mozilla.org/en-US/docs/Web/CSS/font-kerning

It uses the kerning information in the font file to lay out the text.