set_synthetic_slant


Description:

[ Version ( since = "3.3.0" ) ]
public void set_synthetic_slant (float slant)

Sets the "synthetic slant" of a font.

By default is zero. Synthetic slant is the graphical skew applied to the font at rendering time.

HarfBuzz needs to know this value to adjust shaping results, metrics, and style values to match the slanted rendering.

<note>Note: The glyph shape fetched via the draw_glyph function is slanted to reflect this value as well.</note>

<note>Note: The slant value is a ratio. For example, a 20% slant would be represented as a 0.2 value.</note>

Parameters:

slant

synthetic slant value.

font

Font to work upon