You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using node canvas on AWS Lambda to produce images of text (different fonts, sizes, colours etc.) I use the registerFont() method of the API to register my font. The first time I call my function, I get the expected output. However, if I call again with a different font and font file this time, the canvas renders some previously registered font. My lambda is still warm, therefore the data is still there. I am using unique font names, files and families. Therefore, it makes no sense to me, why the canvas is rendering text using previously registered fonts. I went through several related github issues, but couldn't find a solution. Any ideas would be greatly appreciated.
Registered the font with the registerFont() method by using the exact font family description I got from the metadata.
It worked perfectly.
P.S. It will only work for unique font families. For some reason, registering three different font files (.e.g Regular, Bold and Light) with the same font family description and a different weight, didn''t work.
I am using node canvas on AWS Lambda to produce images of text (different fonts, sizes, colours etc.) I use the registerFont() method of the API to register my font. The first time I call my function, I get the expected output. However, if I call again with a different font and font file this time, the canvas renders some previously registered font. My lambda is still warm, therefore the data is still there. I am using unique font names, files and families. Therefore, it makes no sense to me, why the canvas is rendering text using previously registered fonts. I went through several related github issues, but couldn't find a solution. Any ideas would be greatly appreciated.
Issue or Feature
Getting error: 'Fontconfig error: Cannot load default config file'
Steps to Reproduce
Register different fonts and render text. Does it render them as expected?
Your Environment
npm list canvas
oryarn list canvas
):Node 10 on AWS Lambda (Layers)
The text was updated successfully, but these errors were encountered: