Custom fonts via fontconfig
I'm trying to set up the sharp pacakge in nodejs to generate an image for me using text and a custom font. Their documentation says I need to install fontconfig which I've done via railway.toml. But once I have fontconfig installed, I'm not sure where to put font files. Is there some way to copy them to
/usr/local/share/fonts
from my repo? Are there any examples of fontconfig usage with railway projects?2 Replies