extract the font file

This commit is contained in:
Kyle McNally 2023-12-18 14:19:06 -05:00
parent 5597e45f59
commit 62b5d05260
1 changed files with 5 additions and 2 deletions

View File

@ -51,7 +51,7 @@ interface Viewport {
if (isRunningInAwsLambda()) { if (isRunningInAwsLambda()) {
if (process.env["FONTCONFIG_PATH"] === undefined) { 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) { if (process.env["LD_LIBRARY_PATH"] === undefined) {
@ -306,7 +306,10 @@ class Chromium {
} }
// Extract the required files // 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) { if (this.graphics) {
// Only inflate graphics stack if needed // Only inflate graphics stack if needed
promises.push(LambdaFS.inflate(`${input}/swiftshader.tar.br`)); promises.push(LambdaFS.inflate(`${input}/swiftshader.tar.br`));