From 62b5d0526077283c07ff315d868e4cee3c208e9a Mon Sep 17 00:00:00 2001 From: Kyle McNally Date: Mon, 18 Dec 2023 14:19:06 -0500 Subject: [PATCH] extract the font file --- source/index.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source/index.ts b/source/index.ts index 01fd5ee..0ab43e7 100644 --- a/source/index.ts +++ b/source/index.ts @@ -51,7 +51,7 @@ interface Viewport { if (isRunningInAwsLambda()) { if (process.env["FONTCONFIG_PATH"] === undefined) { - process.env["FONTCONFIG_PATH"] = "/tmp/aws"; + process.env["FONTCONFIG_PATH"] = "/tmp/fonts"; } if (process.env["LD_LIBRARY_PATH"] === undefined) { @@ -306,7 +306,10 @@ class Chromium { } // Extract the required files - const promises = [LambdaFS.inflate(`${input}/chromium.br`)]; + const promises = [ + LambdaFS.inflate(`${input}/chromium.br`), + LambdaFS.inflate(`${input}/fonts.tar.br`), + ]; if (this.graphics) { // Only inflate graphics stack if needed promises.push(LambdaFS.inflate(`${input}/swiftshader.tar.br`));