intellij-pdf-viewer icon indicating copy to clipboard operation
intellij-pdf-viewer copied to clipboard

Can't render Simplified Chinese fandol text

Open Geno1024 opened this issue 3 years ago • 0 comments

Simplified Chinese character in PDF can't be rendered if they are using the default "Fandol" font.

System and IDEA information
XeTeX 3.141592653-2.6-0.999994 (TeX Live 2022/Arch Linux)
IntelliJ IDEA 2022.2 Beta (Ultimate Edition)
Build #IU-222.3345.16, built on July 7, 2022
Licensed to IntelliJ IDEA EAP user: [REDACTED]
Expiration date: August 6, 2022
Runtime version: 17.0.3+7-b469.19 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.15.50-1-manjaro
GC: G1 Young Generation, G1 Old Generation
Memory: 1500M
Cores: 4
Registry:
    debugger.new.tool.window.layout=true
    ide.experimental.ui=true
    eslint.additional.file.extensions=svelte

Non-Bundled Plugins:
    [REDACTED]
    com.firsttimeinforever.intellij.pdf.viewer.intellij-pdf-viewer (0.14.0)

Kotlin: 222-1.7.0-release-282-IJ3345.16
Current Desktop: KDE

MWE:

% compile with `xelatex main.tex`
\documentclass{article}

\usepackage{xeCJK}

\begin{document}
    English.
    English.
    中文。English.
\end{document}

Using PDF Viewer in IntelliJ IDEA will look like this: image

But the expected behavior is: image

However, specifying other font instead of the default "Fandol" font will make everything looks good.

Geno1024 avatar Jul 14 '22 15:07 Geno1024