resvg_options_load_font_file method

int resvg_options_load_font_file(
  1. Pointer<resvg_options> opt,
  2. Pointer<Char> file_path
)

@brief Loads a font file into the internal fonts database.

Prints a warning into the log when the data is not a valid TrueType font.

Has no effect when the text feature is not enabled.

@return #resvg_error with RESVG_OK, RESVG_ERROR_NOT_AN_UTF8_STR or RESVG_ERROR_FILE_OPEN_FAILED

Implementation

int resvg_options_load_font_file(
  ffi.Pointer<resvg_options> opt,
  ffi.Pointer<ffi.Char> file_path,
) {
  return _resvg_options_load_font_file(
    opt,
    file_path,
  );
}