Missing Text When I have Generate with Canvas API
Hello Team ! I need help and have some question for asking you
Solution:Jump to solution
you may need to install fontconfig as shown here - https://github.com/brody192/node-canvas-fonts/blob/main/railway.json
just copy this railway.json file to your project...
11 Replies
Project ID:
b81fc524-4ecb-482d-9fca-0df60d63e12e
b81fc524-4ecb-482d-9fca-0df60d63e12e
@Percy can you help me ?
Percy is a bot
so can you help me ?
i have some question with railway
to help you, you would need to provide more information:
- tech stack, what are you using
- what kind of error are you having
- is it related to railway or not, can you find your answer in the canvas API documentation?
- how are you deploying on railway, nixpack, dockerfile? if dockerfile, is it working locally when you are building/running?
i have an error with canvas API generate image
when i have generate in my local the text in the image is working
but when i have deployed the code and generate with my production it's missing the text
may i know or what should i need to install in my project ?
good afternoon sir ! do you have any update ?
Nope, I wouldn't be able to help you. Re-read my message above, and provide information about the error you are having
- for tech i have used the node js
- my issued is missing text when i have genearate the image with Canvas API
- Okay i will check more about Canvas API Docu
- for the code i have deploying on railway with nixpack for locally is working fine
Solution
you may need to install fontconfig as shown here - https://github.com/brody192/node-canvas-fonts/blob/main/railway.json
just copy this railway.json file to your project
let me try i will update you later βοΈ
@Brody now is working fine sir ! thank you :salute:
awsome!