Method Cairo.FontOptions()->set_variations()
- Method
set_variations
void
set_variations(string(7bit)
|zero
variations
)- Description
Sets the OpenType font variations for the font options object. Font variations are specified as a string with a format that is similar to the CSS font-variation-settings. The string contains a comma-separated list of axis assignments, which each assignment consists of a 4-character axis name and a value, separated by whitespace and optional equals sign.
- Example
wght=200,wdth=140.5 wght 200 , wdth 140.5
- Parameter
variations
the new font variations, or
0