Gimp.context_set_font

function context_set_font(name: String): Boolean {
    // Gjs wrapper for gimp_context_set_font()
}
  

Set the specified font as the active font.

This procedure allows the active font to be set by specifying its name. The name is simply a string which corresponds to one of the names of the installed fonts. If no matching font is found, this procedure will return an error. Otherwise, the specified font becomes active and will be used in all subsequent font operations.

Since 2.2

name

The name of the font.

Returns

TRUE on success.