Text not rendering in canvas
tansandoteth
PROOP

8 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

8 months ago

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


8 months ago

You'll probably need to do something like this -


tansandoteth
PROOP

8 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


8 months ago

Sounds good


tansandoteth
PROOP

8 months ago

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


tansandoteth
PROOP

8 months ago

I used yours and it was working


tansandoteth
PROOP

8 months ago

!s


tansandoteth
PROOP

8 months ago

thank you!


8 months ago

No problem!


8 months ago

!s


Status changed to Solved brody 8 months ago


Loading...