Chinese characters disappear after exporting to PDF

Steps to reproduce

  1. Open sandbox vault
  2. create new note
  3. type 测试
  4. Export to PDF
  5. Open PDF

Did you follow the troubleshooting guide? [Y/N]

Yes

Expected result

The word 测试 is visible in the PDF

Actual result

The PDF is blank

Environment

  1. Windows 11
  2. Obsidian 1.10.3

Additional information

This bug has been present for several versions and several months and it can be fixed by adding the css below

@media print {
  body {
    --font-text: 'Microsoft YaHei', sans-serif;
    --font-print: 'Microsoft YaHei', sans-serif;
  }
}

works fine for me on.

what is the output of “show debug info” command

can you post a screen recording of this happening in the sandbox vault?

Sorry I missed your message. The bug has been disappeared, perhaps it’s because i reinstalling Obsidian (instead of simply updating) a few days ago which fixed some incorrect settings.

It might just an issue with a previous version update and it no longer affects users now.