Back to Content

FontFace: stretch property

files/en-us/web/api/fontface/stretch/index.md

latest452 B
Original Source

{{APIRef("CSS Font Loading API")}}{{AvailableInWorkers}}

The stretch property of the {{domxref("FontFace")}} interface retrieves or sets how the font stretches.

This property is equivalent to the {{cssxref("@font-face/font-stretch", "font-stretch")}} descriptor.

Value

A string containing a descriptor as it would be defined in a style sheet's @font-face rule.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}