Grx.Font.load
function load(family: String, size: Number(gint)): Grx.Font {
// Gjs 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 null
- size
the preferred size or -1 for any size
- Returns
the font or null if there was an error