ascent-override
Quick Summary for ascent-override (@font-face)
The ascent-override CSS descriptor defines the ascent metric for the font. The ascent metric is the height above the baseline that CSS uses to lay out line boxes in an inline formatting context.
Code Usage for ascent-override (@font-face)
ascent-override: normal; ascent-override: 90%; 
More Details for ascent-override (@font-face)

ascent-override

The ascent-override CSS descriptor defines the ascent metric for the font. The ascent metric is the height above the baseline that CSS uses to lay out line boxes in an inline formatting context.

Syntax

ascent-override: normal; ascent-override: 90%; 

Values

normal

The default value. When used the metric value is obtained from the font file.

<percentage>

A <percentage> value.

Formal definition

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

Formal syntax

normal | <percentage>

Examples

Overriding metrics of a fallback font

The ascent-override 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);   ascent-override: 125%; } 

Specifications

Specification
CSS Fonts Module Level 4 # font-metrics-override-desc

See also

descent-override font-display font-family font-weight font-style font-stretch font-variant font-feature-settings font-variation-settings line-gap-override src size-adjust unicode-range descriptor

Last modified: Aug 12, 2021, by MDN contributors

Select your preferred language English (US)Français Change language

No Items Found.

Add Comment
Type in a Nick Name here
 
Related Search Terms
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
In this case my anchor this week becomes driving almost 2hrs outside of Atlanta to one of my favorite hard core gyms in the world.. MetroFlex aka The Dungeon. The gym owners turn the heat way up so it becomes a fun sweat box and the gym members just watch from afar and leave me alone. I happily drive myself long distances to find MY ANCHOR. Our anchor allows us to have balance, focus and be as productive as possible. And if you're in the middle of a heavy set and your headphones start to fall off your head, like mine did here.. well.. f*ck the headphones. Let em break and fall. You can always get a new pair, but the iron ain't ever gonna lift itself.
Unknown
Random CSS Property

appearance (-moz-appearance, -webkit-appearance)

The appearance CSS property is used to display an element using platform-native styling, based on the operating system's theme. The -moz-appearance and -webkit-appearance properties are non-standard versions of this property, used (respectively) by Gecko (Firefox) and by WebKit-based (e.g., Safari) and Blink-based (e.g., Chrome, Opera) browsers to achieve the same thing. Note that Firefox and Edge also support -webkit-appearance, for compatibility reasons.
appearance css reference