Fonts change when adding non-latin characters

70 Views Asked by At

I am using NightmareJS to print a PDF on Linux + Docker, one in English only and one Chinese-English mixed. I copied all fonts from my Mac to Docker for trial to avoid missing fonts.

That's what I get for the whole document:

Nightmare:

  • English only: Helvetica
  • English-Chinese: Arial-BoldMT + ArialUnicodeMS

Chrome on Mac:

  • English only: Helvetica
  • English-Chinese: Helvetica + PingFang TC

See this detailed explanation

Question:

How can I avoid that Nightmare switches Helvetica to Arial? Chrome on Mac is the expected result.

0

There are 0 best solutions below