Path: blob/main/files/en-us/web/css/@font-face/size-adjust/index.md
6517 views
------{{CSSRef}}
The size-adjust CSS descriptor defines a multiplier for glyph outlines and metrics associated with this font. This makes it easier to harmonize the designs of various fonts when rendered at the same font size.
The size-adjust descriptor behaves in a similar fashion to the {{cssxref("font-size-adjust")}} property. It calculates an adjustment per font by matching ex heights.
Syntax
Values
<percentage>: A {{cssxref("<percentage>")}} value with an initial value of 100%.
All metrics associated with this font are scaled by the given percentage. This includes glyph advances, baseline tables, and overrides provided by {{cssxref("@font-face")}} descriptors.
Formal definition
{{cssinfo}}
Formal syntax
{{csssyntax}}
Examples
Overriding metrics of a fallback font
The size-adjust property can help when overriding the metrics of a fallback font to better match those of a primary web font.
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}
See also
{{cssxref("@font-face/font-display", "font-display")}} descriptor
{{cssxref("@font-face/font-family", "font-family")}} descriptor
{{cssxref("@font-face/font-weight", "font-weight")}} descriptor
{{cssxref("@font-face/font-style", "font-style")}} descriptor
{{cssxref("@font-face/font-stretch", "font-stretch")}} descriptor
{{cssxref("font-feature-settings", "font-feature-settings")}}
{{cssxref("@font-face/font-variation-settings", "font-variation-settings")}} descriptor
{{cssxref("@font-face/src", "src")}} descriptor
{{cssxref("@font-face/unicode-range", "unicode-range")}} descriptor
{{cssxref('font-size-adjust')}} property