Text not rendering in canvas
tansandoteth
PROOP

a year ago

I am using Deno to and a canvas library to create an image with text on it and it renders fine locally but none of the text renders on Railway. It might be a font issue, but I am unsure.

Solved

10 Replies

tansandoteth
PROOP

a year ago

b2c251f8-d54e-4fd7-9ff0-5351cb3d1e75


a year ago

You'll probably need to do something like this -


tansandoteth
PROOP

a year ago

I did try to include the font and registering it manually, but i used return canvas.toBuffer("image/png"); instead. I'll try your method tomorrow


a year ago

Sounds good


tansandoteth
PROOP

a year ago

Oh I just figured out the issue. The font file i bundled was corrupted


tansandoteth
PROOP

a year ago

I used yours and it was working


tansandoteth
PROOP

a year ago

!s


tansandoteth
PROOP

a year ago

thank you!


a year ago

No problem!


a year ago

!s


Status changed to Solved brody 11 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...