1
0
mirror of https://github.com/google/fonts.git synced 2024-12-16 12:18:03 +03:00
fonts/axisregistry
2020-08-24 16:15:18 -04:00
..
casual.textproto GF Axis Registry setup (#2541) 2020-07-13 15:52:55 -07:00
cursive.textproto GF Axis Registry setup (#2541) 2020-07-13 15:52:55 -07:00
expression.textproto GF Axis Registry setup (#2541) 2020-07-13 15:52:55 -07:00
grade.textproto GF Axis Registry setup (#2541) 2020-07-13 15:52:55 -07:00
italic.textproto GF Axis Registry setup (#2541) 2020-07-13 15:52:55 -07:00
monospace.textproto GF Axis Registry setup (#2541) 2020-07-13 15:52:55 -07:00
optical_size.textproto GF Axis Registry setup (#2541) 2020-07-13 15:52:55 -07:00
README.md Update README.md 2020-08-24 16:15:18 -04:00
slant.textproto GF Axis Registry setup (#2541) 2020-07-13 15:52:55 -07:00
softness.textproto GF Axis Registry setup (#2541) 2020-07-13 15:52:55 -07:00
weight.textproto GF Axis Registry setup (#2541) 2020-07-13 15:52:55 -07:00
width.textproto GF Axis Registry setup (#2541) 2020-07-13 15:52:55 -07:00
wonkiness.textproto GF Axis Registry setup (#2541) 2020-07-13 15:52:55 -07:00

GF Axis Registry

This package contains a collection of metadata files that collectively form the Google Fonts Axis Registry.

Axis Metadata Fields

  • tag
    • Tag for the axis used to specify an axis in font-variation-settings and CSS API requests.
  • display_name
    • Readable name for the axis, generally the expanded form of tag.
  • min_value
    • Lower bound of the axis. Inclusive.
  • max_value
    • Upper bound of the axis. Inclusive.
  • default_value
    • Default position of the aixs.
  • precision
    • Describes the specificity at which an axis position can be specified. For example, 0 means values must be specified as whole numbers while -1 means values can be as precise as one decimal place.
  • fallback (repeated)
    • Important positions along the axis. For weight, these are positions like Regular, Medium, and Bold.
  • description
    • A description of the axis.

Why does Google Fonts have its own Axis Registry?

We support a superset of the OpenType axis registry axis set, and use additional metadata for each axis. Axes present in a font file but not in this registry will not function via our API. No variable font is expected to support all of the axes here.

Any font foundry or distributor library that offers variable fonts has a implicit, latent, de-facto axis registry, which can be extracted by scanning the library for axes' tags, labels, and min/def/max values. While in 2016 Microsoft originally offered to include more axes in the OpenType 1.8 specification (github.com/microsoft/OpenTypeDesignVariationAxisTags), as of August 2020, this effort has stalled. We hope more foundries and distributors will publish documents like this that make their axes explicit, to encourage of adoption of variable fonts throughout the industry, and provide source material for a future update to the OpenType specification's axis registry.