monks/font_synthesis

The font-synthesis shorthand CSS property lets you specify whether or not the browser may synthesize the bold, italic, small-caps, and/or subscript and superscript typefaces when they are missing in the specified font-family.

Values

pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const none: #(String, String)
  • : Indicates that no bold, italic, or small-caps typeface may be synthesized by the browser.
pub const position: #(String, String)
  • : Indicates that the subscript and superscript typeface may be synthesized by the browser, if needed, when using {{cssxref(“font-variant-position”)}}.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for font-synthesis

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const small_caps: #(String, String)
  • : Indicates that the small-caps typeface may be synthesized by the browser if needed.
pub const style: #(String, String)
  • : Indicates that the italic typeface may be synthesized by the browser if needed.
pub const unset: #(String, String)
pub fn var(variable: String) -> #(String, String)

Enter a variable name to be used for font-synthesis. It will be wrapped in var() and have -- prepended.

pub const weight: #(String, String)
  • : Indicates that the missing bold typeface may be synthesized by the browser if needed.
Search Document