cairo_font_options_set_variations: cairo_font_options_set_variations

Description Usage Arguments Details See Also

View source: R/cairo-font-options.R

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.

Usage

1

Arguments

options

[cairo_font_options_t *] a #cairo_font_options_t

variations

[char *] the new font variations, or %NULL

Details

Examples:

wght=200,wdth=140.5

wght 200 , wdth 140.5

Since: 1.16

C function prototype: void cairo_font_options_set_variations (cairo_font_options_t *options, const char *variations)

See Also

Other cairo-font-options: cairo_font_options_copy(), cairo_font_options_create(), cairo_font_options_equal(), cairo_font_options_get_antialias(), cairo_font_options_get_hint_metrics(), cairo_font_options_get_hint_style(), cairo_font_options_get_subpixel_order(), cairo_font_options_get_variations(), cairo_font_options_hash(), cairo_font_options_merge(), cairo_font_options_set_antialias(), cairo_font_options_set_hint_metrics(), cairo_font_options_set_hint_style(), cairo_font_options_set_subpixel_order(), cairo_font_options_status()


coolbutuseless/cairocore documentation built on Aug. 31, 2020, 12:43 a.m.