Grx.Font.load

@accepts(unicode, int)
@returns(Grx.Font)
def load(family, size):
    # Python wrapper for grx_font_load()
  

Loads the font that best matches the parameters.

Uses fontconfig for font matching. This function is dpi aware, so the result depends on the currently selected video driver and possibly the video mode.

family

the font family name or None

size

the preferred size or -1 for any size

Returns