FontVariation.slant constructor

const FontVariation.slant(
  1. double value

Variable font width. (slnt)

Varies the slant of glyphs in the font.

Values must be greater than -90.0 and less than +90.0, and represents the angle in counter-clockwise degrees relative to "normal", at 0.0.

For example, to lean the glyphs forward by 45 degrees, one would use FontVariation.slant(-45.0).

This is distinct from FontVariation.italic, in that slant leans the characters without changing the font style.

See also:


const FontVariation.slant(this.value) : assert(value > -90.0), assert(value < 90.0), axis = 'slnt';