Headless Chrome 79 does not load fonts from Google Fonts on Windows
Asked Answered
C

1

6

I have a problem with external font-face loading with headless Chrome 79 (same problem with Canary) on Windows (both 32 bits and 64 bits versions).

Here's an example with Google Fonts:

chrome.exe --headless --disable-gpu https://fonts.google.com

Using the DevTools inspector, I get this error:

Font face error with Headless Chrome 79 on Windows

There is no problem with non-headless mode.

I get this font face loading problem with each page which uses Google Fonts.

I wasn't able to reproduce this error on Bionic.

I'm totally stuck. Any help would be greatly appreciated.

Carsoncarstensz answered 9/1, 2020 at 10:22 Comment(0)
N
4

I just stumbled over the same issue today.

Adding the following parameter solved that issue for me:

--virtual-time-budget=10000

It will tell Chrome to at wait (max. 10000ms) for all pending network request.

Source: https://mcmap.net/q/625763/-what-does-the-argument-virtual-time-budget-of-chrome-cli-really-mean

Nowt answered 5/1, 2022 at 19:54 Comment(3)
Very interesting, thanks a lot!Carsoncarstensz
Tried 20 switches, and this was the one that solved the issue. The issue only sporadicly showed on same machines.Neurilemma
Thank you! This fixed missing fonts for Latex math equations in R Quarto documentsSolidary

© 2022 - 2024 — McMap. All rights reserved.