Skip to content

[css4-fonts] support for OpenType font variations #498

@nattokirai

Description

@nattokirai

A new version of the OpenType spec defines a new font type, OpenType Font Variations, that includes not only glyph outlines but data that indicates how those outlines change by weight, width or other custom font axis. This allow a single font file to effectively serve as an efficient container for a wide variety of font instances within a single font family.

Background description:
John Hudson's blog post on variable fonts

Spec reference:
OpenType 1.8 spec

For these fonts to be available within web content, adjustments are needed to the CSS Fonts spec, possibly including new properties. The new OpenType spec defines a number of "standard" axes along with the ability to support custom axes created by a type designer.

Design goals for CSS changes to support variable fonts:

  • support existing content that uses a font family containing variable fonts
  • allow efficient use of variable fonts as downloadable resources
  • allow author access to the custom axes that a type designer includes in their design

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions