size-adjust
Quick Summary for size-adjust (@font-face)
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.
Code Usage for size-adjust (@font-face)
size-adjust: 90%; 
More Details for size-adjust (@font-face)

size-adjust

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 font-size-adjust property. It calculates an adjustment per font by matching ex heights.

Syntax

size-adjust: 90%; 

Values

<percentage>

A <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 @font-face descriptors.

Formal definition

Related at-rule@font-face
Initial value100%
Percentagesas specified
Computed valueas specified

Formal syntax

<percentage>

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.

@font-face {   font-family: web-font;   src: url("https://example.com/font.woff"); }  @font-face {   font-family: local-font;   src: local(Local Font);   size-adjust: 90%; } 

Specifications

Specification
CSS Fonts Module Level 5 # size-adjust-desc

See also

font-display descriptor font-family descriptor font-weight descriptor font-style descriptor font-stretch descriptor font-variant descriptor font-feature-settings font-variation-settings descriptor src descriptor unicode-range descriptor font-size-adjust property

Last modified: Jan 31, 2022, by MDN contributors

No Items Found.

Add Comment
Type in a Nick Name here
 
Other Categories in CSS
css
Search CSS
Search CSS by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code here, mostly for my reference. Also if i find a good link, i usually add it here and then forget about it. more...

Subscribe to weekly updates about things i have added to the site or thought interesting during the last week.

You could also follow me on twitter or not... does anyone even use twitter anymore?

If you found something useful or like my work, you can buy me a coffee here. Mmm Coffee. ☕

❤️👩‍💻🎮

🪦 2000 - 16 Oct 2022 - Boots
Random Quote
"We're tight-fisted with property and money, yet think too little of wasting time, the one thing about which we should all be the toughest misers.”
Seneca
Random CSS Property

padding-block

The padding-block CSS shorthand property defines the logical block start and end padding of an element, which maps to physical padding properties depending on the element's writing mode, directionality, and text orientation.
padding-block css reference