set_synthetic_bold


Description:

[ Version ( since = "7.0.0" ) ]
public void set_synthetic_bold (float x_embolden, float y_embolden, Bool in_place)

Sets the "synthetic boldness" of a font.

Positive values for x_embolden / y_embolden make a font bolder, negative values thinner. Typical values are in the 0.01 to 0.05 range. The default value is zero.

Synthetic boldness is applied by offsetting the contour points of the glyph shape.

Synthetic boldness is applied when rendering a glyph via draw_glyph.

If in_place is `false`, then glyph advance-widths are also adjusted, otherwise they are not. The in-place mode is useful for simulating font grading.

Parameters:

x_embolden

the amount to embolden horizontally

y_embolden

the amount to embolden vertically

in_place

whether to embolden glyphs in-place

font

Font to work upon