FontFace: weight property

فهرست فصل‌ها دانلود آرشیوناشر

MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونه‌کد

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

The **weight** property of the {{domxref("FontFace")}} interface retrieves or sets the weight of the font.

This property is equivalent to the {{cssxref("@font-face/font-weight", "font-weight")}} 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}}