Text not rendering in canvas
tansandoteth
PROOP

10 months 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

10 months ago

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


10 months ago

You'll probably need to do something like this -


tansandoteth
PROOP

10 months 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


10 months ago

Sounds good


tansandoteth
PROOP

10 months ago

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


tansandoteth
PROOP

10 months ago

I used yours and it was working


tansandoteth
PROOP

10 months ago

!s


tansandoteth
PROOP

10 months ago

thank you!


10 months ago

No problem!


10 months ago

!s


Status changed to Solved brody 10 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...