setFontDirectory method
Registers fonts inside the given fontDirectory
, so they will be
available to use in FFmpeg filters.
Implementation
Future<void> setFontDirectory(
String fontDirectory, Map<String, String> fontNameMap) async {
var parameters;
parameters = {'fontDirectory': fontDirectory, 'fontNameMap': fontNameMap};
try {
await _methodChannel.invokeMethod('setFontDirectory', parameters);
} on PlatformException catch (e) {
logger.e('Plugin setFontDirectory error: ${e.message}');
}
}