Custom Fonts

c-a-y-d-e
PRO

a year ago

So i have a program that generate images with dynamix text and i am using sharp to add text over image but when i generate it returns without any text, but works in my local.

Solved

4 Replies

a year ago

Hello,

You will likely need to install fontconfig as shown here -

https://github.com/brody192/node-canvas-fonts/blob/main/railway.json


Status changed to Awaiting User Response Railway 11 months ago


c-a-y-d-e
PRO

a year ago

thanks worked ;)


Status changed to Awaiting Railway Response Railway 11 months ago


c-a-y-d-e
PRO

a year ago

one more thing how i add custom fonts what i saw in the repo you shared just need to add fonts and i did but i am using sharp for editing image


a year ago

You'd add the font file to your project and then load the font in code.


Status changed to Awaiting User Response Railway 11 months ago


Railway
BOT

a month ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway about 1 month ago


Custom Fonts - Railway Help Station