ass_set_fonts method
\brief Set font lookup defaults. \param default_font path to default font to use. Must be supplied if all system fontproviders are disabled or unavailable. \param default_family fallback font family, or NULL \param dfp which font provider to use (one of ASS_DefaultFontProvider). In older libass version, this could be 0 or 1, where 1 enabled fontconfig. Newer relases also accept 0 (ASS_FONTPROVIDER_NONE) and 1 (ASS_FONTPROVIDER_AUTODETECT), which is almost backward-compatible. If the requested fontprovider does not exist or fails to initialize, the behavior is the same as when ASS_FONTPROVIDER_NONE was passed. \param config path to fontconfig configuration file, or NULL. Only relevant if fontconfig is used. The encoding must match the one accepted by fontconfig. \param update whether fontconfig cache should be built/updated now. Only relevant if fontconfig is used.
NOTE: font lookup must be configured before an ASS_Renderer can be used.
Implementation
void ass_set_fonts(
ffi.Pointer<ASS_Renderer> priv,
ffi.Pointer<ffi.Char> default_font,
ffi.Pointer<ffi.Char> default_family,
int dfp,
ffi.Pointer<ffi.Char> config,
int update,
) {
return _ass_set_fonts(
priv,
default_font,
default_family,
dfp,
config,
update,
);
}