rsheeter fd697b81b2 Sketch of ytfi pending a real definition (#3691) 3 лет назад
..
README.md a76642d565 Update axisregistry/README.md 4 лет назад
casual.textproto 4bd3c05add GF Axis Registry setup (#2541) 4 лет назад
cursive.textproto 4bd3c05add GF Axis Registry setup (#2541) 4 лет назад
flair.textproto d31a526850 flair.textproto added to axisregistry (#2740) 4 лет назад
grade.textproto 43a3ded251 Update grade.textproto (#2761) 4 лет назад
italic.textproto 4bd3c05add GF Axis Registry setup (#2541) 4 лет назад
monospace.textproto 4bd3c05add GF Axis Registry setup (#2541) 4 лет назад
optical_size.textproto 12e38bd848 Update optical_size.textproto (#2989) 4 лет назад
slant.textproto 4bd3c05add GF Axis Registry setup (#2541) 4 лет назад
softness.textproto 226d21eaae update SOFT axis to close issue #2760 4 лет назад
volume.textproto 5b40dbdf2f volume.textproto added to axisregistry (#2739) 4 лет назад
weight.textproto 4bd3c05add GF Axis Registry setup (#2541) 4 лет назад
width.textproto 8ae20059ec Update width.textproto min from 50 to 25 (#2603) 4 лет назад
wonky.textproto fec76fe133 Rename filename to match display_name. 4 лет назад
x_opaque.textproto 5faa45440f Fix display names 3 лет назад
x_transparent.textproto 8a65a2a14f Add all Roboto Flex axes except YTFI which is not defined in https://variationsguide.typenetwork.com/ (#3688) 3 лет назад
x_transparent_figures.textproto b9d94160b4 Define XTFI (#3690) 3 лет назад
y_opaque.textproto 5faa45440f Fix display names 3 лет назад
y_transparent_ascender.textproto 8a65a2a14f Add all Roboto Flex axes except YTFI which is not defined in https://variationsguide.typenetwork.com/ (#3688) 3 лет назад
y_transparent_descender.textproto 8a65a2a14f Add all Roboto Flex axes except YTFI which is not defined in https://variationsguide.typenetwork.com/ (#3688) 3 лет назад
y_transparent_figures.textproto fd697b81b2 Sketch of ytfi pending a real definition (#3691) 3 лет назад
y_transparent_lowercase.textproto 5faa45440f Fix display names 3 лет назад
y_transparent_uppercase.textproto 8a65a2a14f Add all Roboto Flex axes except YTFI which is not defined in https://variationsguide.typenetwork.com/ (#3688) 3 лет назад

README.md

GF Axis Registry

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

The live Axis Registry is at fonts.google.com/variablefonts, and axis definitions are only final when they appear on that page.

When the registry is updated here, a line like axisregistry/axis_name.textproto should be added to the to_sandbox.txt file.

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)
    • Instance positions along the axis, such as wght 100,200,300,400,500,600,700,800,900.
    • A cross-product of fallback positions along all supported axes is created to support legacy browsers that lack variable font support. For axes with CSS3 properties (such as font-weight), the positions accessible to CSS3 should be specified. For axes lacking CSS3 properties a legacy browser is limited to a single position and that position must be at a fallback.
  • 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.