expo / config-plugins

Out-of-tree Expo config plugins for packages that haven't adopted the config plugin system yet.
445 stars 95 forks source link

how to absolute file path for using `fontfile` #38

Closed tennispro7797 closed 2 years ago

tennispro7797 commented 2 years ago

I'm using drawtext and want to specify a custom font I have in my /assets directory. The problem is I don't know how to get the absolute filepath for this.

I have tried setting my font directory using a relative path, but I assume that it requires an absolute path here as well.

    FFmpegKitConfig.setFontDirectoryList([
      "/system/fonts",
      "/System/Library/Fonts",
      "../../assets/fonts/",
    ]);

How do find the absolute path of an asset file in my app directory on a device?

EvanBacon commented 2 years ago

This question is better suited for the upstream repo.