FontDescription.setVariationsStatic

void setVariationsStatic(string variations)

Sets the variations field of a font description.

This is like [pango.font_description.FontDescription.setVariations], except that no copy of variations is made. The caller must make sure that the string passed in stays around until desc has been freed or the name is set again. This function can be used if variations is a static string such as a C string literal, or if desc is only needed temporarily.

Parameters

variationsa string representing the variations