Skip to content

[css-fonts][css-text] Proposed Variable font spacing axis and CSS letter-spacing property #2102

@svgeesus

Description

@svgeesus

From John Hudson on www-style:

This is a proposal to register a standard OpenType design variations axis to affect glyph spacing:
https://github.com/Microsoft/OpenTypeDesignVariationAxisTags/blob/master/Proposals/Spacing_Axis/ProposalSummary.md

Implementations of this 'spac' axis in a variable font would enable font makers to provide superior results in letter-spacing conditions by providing proportional interaction between letter-spacing distance and kerning (via variable GPOS adjustments in the kerning values along the 'spac' axis), and by managing the design of joining letters in Arabic, Devanagari, etc. and in connecting styles of Latin or other scripts, which currently get broken connections when letter-spacing is applied.

I'm interested to hear ideas on how support for variable fonts with a 'spac' feature might be implemented in CSS. A couple of obvious options occur to me:

  1. User agents could apply 'spac' axis adjustments by default when the letter-spacing property is used to expand or contract spacing in text set in a variable font including this axis.
  1. The letter-spacing property could have a new value defined to allow authors to opt in to using 'spac' axis adjustments when applying letter-spacing.

Other possibilities or preferred approaches?

Metadata

Metadata

Assignees

No one assigned

    Labels

    css-fonts-4Current Workcss-text-4i18n-alreqArabic language enablementi18n-ilreqIndic language enablementi18n-trackerGroup bringing to attention of Internationalization, or tracked by i18n but not needing response.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions