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.
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.
How do find the absolute path of an asset file in my app directory on a device?