font-width
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The font-width attribute selects a normal, condensed, or expanded face from a font family for the glyphs used to render the text.
Note:
The font-width attribute is the modern replacement for the deprecated font-stretch attribute. While font-width is the specification's preferred name, font-stretch currently has broader browser support.
You can use this attribute with the following SVG elements:
Note:
As a presentation attribute, font-width also has a CSS property counterpart: font-width. When both are specified, the CSS property takes priority.
Usage notes
| Value | See font-width |
|---|---|
| Default value | normal |
| Animatable | Yes |
Specifications
This feature does not appear to be defined in any specification.>Browser compatibility
See also
- CSS
font-widthproperty - Legacy SVG
font-stretchattribute - CSS
font-stretchproperty