Skip to content

Commit

Permalink
Remove fonts workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisMT committed Jul 13, 2024
1 parent b852d4e commit fa07c3f
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,6 @@ public string ExtractChromium()
logger.LogDebug("/tmp doesn't exist. Is this running on lambda?");
}

if(!Directory.Exists("/tmp/.fonts"))
{
// A fix for the "Check failed: InitDefaultFont(). Could not find the default font" error
Directory.CreateDirectory("/tmp/.fonts");
File.WriteAllText(
"/tmp/.fonts/font.conf",
@"<?xml version=""1.0""?><!DOCTYPE fontconfig SYSTEM ""fonts.dtd""><fontconfig><dir>/opt/usr/share/fonts</dir><dir>/tmp/.fonts</dir></fontconfig>");
}

// Quick bale if exec exists
if (File.Exists(ChromiumPath))
{
Expand Down

0 comments on commit fa07c3f

Please sign in to comment.