Emoji characters #41
-
|
When I was running Puppeteer locally, I needed to have an additional font package installed. Is there a way to do that when running server less function? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Good question! Honestly, I'm not 100% sure if this would work, but I think this could be do-able with a custom layer. They downloaded a custom font, added them as a layer and referenced them in the Puppeteer script. sidecar-browsershot currently does have a To make this easier, we could add a new Or maybe we update sidecar-browsershot to support Emojis out of the box? (I certainly would like that). |
Beta Was this translation helpful? Give feedback.
Good question!
Honestly, I'm not 100% sure if this would work, but I think this could be do-able with a custom layer.
A quick search brought up this article: https://jurgen.si/posts/lambda-headless-chrome-emojis/
They downloaded a custom font, added them as a layer and referenced them in the Puppeteer script.
sidecar-browsershot currently does have a
layer-config, but that can only be a single value, as we push that into an array here.To make this easier, we could add a new
layers-config, so userland can add as many layers as you want.But one still would need to update the
browser.js-file and tell Chromium to load the fonts. 🤔Or maybe we update sidecar-browsershot to support Emojis out…