The `set_variant` method in `matplotlib.font_manager.FontProperties` is used to set the variant of a font. It allows you to specify whether the font should be displayed in a normal, italic, or oblique style. By calling this method and passing in the desired variant (e.g., 'normal', 'italic', or 'oblique'), you can modify the appearance of text rendered using the specified font.
Python FontProperties.set_variant - 20 examples found. These are the top rated real world Python examples of matplotlib.font_manager.FontProperties.set_variant extracted from open source projects. You can rate examples to help us improve the quality of examples.