1
0
mirror of https://github.com/google/fonts.git synced 2024-12-18 14:21:47 +03:00
fonts/cc-by-sa/knowledge/glossary/terms/weight_axis/content.md
Elliot Jay Stocks d416b6914e
Typeface credits etc (#4442)
* Updating GitHub URL for checklist

* New illo: a_checklist_for_choosing_type_2.svg

* Updating `figcaption` to match new illo

* Typeface credits on checklist article

* Typeface credits on anatomy article

* Typeface credits on language article

* Typeface credits for CASL

* Typeface credits on all axis gloss. terms

* Typeface credits in remaining new gloss. illos
2022-03-30 11:06:28 -07:00

1.9 KiB
Raw Blame History

Weight (wght in CSS) is an axis found in many variable fonts. It controls the font files weight parameter.

The Google Fonts CSS v2 API defines the axis as:

Default: Min: Max: Step:
400 1 1000 1

Two side-by-side type specimens of the word “thicken”, each shown with a variable axis represented beneath as a horizontal slider. The first specimen, with the slider most of the way to the left to represent a lower value on the axis, shows a light weight with thin strokes. The second specimen, with the slider most of the way to the right to represent a higher value on the axis, shows a heavy weight with thick strokes.

Typeface: Epilogue

Weight is the overall thickness of a typefaces strokes in any given font. The most common weights are regular and bold, but weights can cover extremes from the very light to the very heavy. With the weight axis in variable fonts, the number of instances or weights is effectively unlimited.

In CSS, we can assign a variable weight property to an element of our choosing:

p {
  font-weight: 350;
}
strong {
  font-weight: 780;
}

Unlike in non-variable fonts, the font-weight values no longer have to be declared in units of 100. Rather than have body copy set in a Regular weight, which would usually sit at 400, we can set it a little lighter, at 350. Similarly, whereas strong text would usually be set in a Bold weight, most often with a value of 700, were setting it at 780: heavier than a Bold, but not quite as heavy as an Extra Bold.