setFontDirectoryList static method

Future<void> setFontDirectoryList(
  1. List<String> fontDirectoryList, [
  2. Map<String, String>? mapping = null
])

Registers the fonts inside the given list of font directories, so they become available to use in FFmpeg filters.

Note that you need to use a package with "fontconfig" inside to be able to use fonts in "FFmpeg".

Implementation

static Future<void> setFontDirectoryList(List<String> fontDirectoryList,
    [Map<String, String>? mapping = null]) async {
  try {
    await init();
    return _platform.ffmpegKitConfigSetFontDirectoryList(
        fontDirectoryList, mapping);
  } on PlatformException catch (e, stack) {
    print("Plugin setFontDirectoryList error: ${e.message}");
    return Future.error("setFontDirectoryList failed.", stack);
  }
}