plotly_gtk.utils.parse_font

plotly_gtk.utils.parse_font(font, single_family=False)

Parse a dictionary of font parameters and return a gi.repository.Pango.FontDescription.

Parameters:
Returns:

The fields are set as provided in the input dict.

Return type:

gi.repository.Pango.FontDescription