James-Yu / LaTeX-Workshop

Boost LaTeX typesetting efficiency with preview, compile, autocomplete, colorize, and more.
MIT License
10.47k stars 519 forks source link

PDF viewer not showing the right font #4230

Closed LeonE2024 closed 3 months ago

LeonE2024 commented 3 months ago

Please fill the following fields with a star (*) and provide as much related information as possible.

Pre-checks*

Please change the following [ ] to [x] for confirmation.

  • [ *] The issue has not been reported in this repository.
  • [ *] The issue remains after disabling all other extensions and restarting Visual Studio Code.
  • [ *] The FAQ cannot address the issue.
  • [* ] The issue is not related to compiling a document, or the document can be successfully compiled in the OS terminal but not in Visual Studio Code with this extension.

Environment*

The Issue*

I am working with a dokument in the Arial font. Unfortunately, the build-in web browser still shows the document in the default latex font instead of arial. If I open the same document in google chrome, it is correctly displayed in arial.

Reproduction Steps

  1. create a latex document
  2. use the magic comment %!TEX program = xelatex to set the compiler to xelatex
  3. set the font to Arial with \usepackage[no-math]{fontspec} \setmainfont{Arial}
  4. view it with the integrated PDF viewer

Developer Tools Console

Please paste the whole log messages below, not parts of ones. This console logs can sometimes be very important in many cases. To access the log, click Help -> Toggle Developer Tools -> Console.

James-Yu commented 3 months ago

Please provide an example pdf file with the problem.

James-Yu commented 3 months ago

Close for now due to inactivity.