CSS: How could I deactivate kerning for my font?

前端 未结 5 1810
广开言路
广开言路 2021-01-03 11:51

How could I deactivate kerning for my font?

5条回答
  •  感情败类
    2021-01-03 12:28

    See the kerning concept at Wikipedia.

    Kerning is not controlled by letter-spacing, and there are no font-kerning for CSS1 or CSS2. The new specification, CSS3, has not been approved as a standard (W3C Recommendation), but there are a property proposed for font-kerning, see 2012 draft,

    http://www.w3.org/TR/css3-fonts/#font-kerning-prop

    Only specific fonts, like OpenFonts, have this property.

    Even with no kerning control, the use of a non-zero letter-spacing can change the "human kerning perception", producing a "deactivate kerning" effect. Example: enhance kerning with letter-spacing:-0.1em and lost with letter-spacing:0.5em.

    With CSS1 letter-spacing property you can lost or enhance kerning perception, and into a "letter-spaced text" you can simulate kerning:

    VAST (normal)
    VAST (enhance perception)
    VAST (lost perception)
    SIMULATE: VAST TEXT

    See the above example here.

提交回复
热议问题