AWS lambda deployment for skottie, embedded fonts not rendering #3108
-
I am developing a AWS lambda function to extract png frames from a lottie animation. The problem is that the fonts aren't rendering. Fonts are embedded inside lottie with base64 encoding.
Development environment: Visual Studio 2022 on Windows 10. Using the AWS Toolkit extention for deploying to AWS. Any help is appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Created a Lambda Layer with the fontconfig library taken from a Amazon2 WSL instance, added the fonts and the fonts.conf to the the layer.
Fonts.conf contents:
Note: The Zip file for the layer should have fonts and lib folders only not the /opt folder, since lambda mounts the layer on /opt. |
Beta Was this translation helpful? Give feedback.
Created a Lambda Layer with the fontconfig library taken from a Amazon2 WSL instance, added the fonts and the fonts.conf to the the layer.
Set the environment variables to
Fonts.conf contents:
Note: The Zip file for the layer should have fonts and lib folders only not the /opt folder, since lambda mounts the layer on /opt.