monks/font_synthesis_small_caps

The font-synthesis-small-caps CSS property lets you specify whether or not the browser may synthesize small-caps typeface when it is missing in a font family. Small-caps glyphs typically use the form of uppercase letters but are reduced to the size of lowercase letters.

It is often convenient to use the shorthand property {{cssxref(“font-synthesis”)}} to control all typeface synthesis values.

Values

pub const auto_: #(String, String)
  • : Indicates that the missing small-caps typeface may be synthesized by the browser if needed.
pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const none: #(String, String)
  • : Indicates that the synthesis of the missing small-caps typeface by the browser is not allowed.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for font-synthesis-small-caps

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const unset: #(String, String)
pub fn var(variable: String) -> #(String, String)

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

Search Document