monks/font_stretch

{{deprecated_header}}

The font-stretch property has now been renamed to font-width in the specifications. The name font-stretch has been kept as an alias for the font-width property. The new name font-width is not yet supported by any browsers.

The font-stretch CSS property selects a normal, condensed, or expanded face from a font.

Values

pub const condensed: #(String, String)

condensed value of font-stretch

pub const expanded: #(String, String)

expanded value of font-stretch

pub const extra_condensed: #(String, String)

extra-condensed value of font-stretch

pub const extra_expanded: #(String, String)

extra-expanded value of font-stretch

pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const normal: #(String, String)
  • : Specifies a normal font face.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for font-stretch

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const semi_condensed: #(String, String)
  • : Specifies a more condensed font face than normal, with ultra-condensed as the most condensed.
pub const semi_expanded: #(String, String)
  • : Specifies a more expanded font face than normal, with ultra-expanded as the most expanded.
pub const ultra_condensed: #(String, String)

ultra-condensed value of font-stretch

pub const ultra_expanded: #(String, String)

ultra-expanded value of font-stretch

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

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

Search Document