Method

PangoFontMapadd_font_file

Declaration [src]

gboolean
pango_font_map_add_font_file (
  PangoFontMap* fontmap,
  const char* filename,
  GError** error
)

Description [src]

Loads a font file with one or more fonts into the PangoFontMap.

The added fonts will take precedence over preexisting fonts with the same name.

Available since:1.56

Parameters

filename const char*
 

Path to the font file.

 The data is owned by the caller of the function.
 The value is a file system path, using the OS encoding.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

True if the font file is successfully loaded into the fontmap, false if an error occurred.