CentOS: pandoc error: Missing character: There is no in font


Sample error, source file contains Japanese characters

[root@tutorialspots pdf]# pandoc --pdf-engine=xelatex -V CJKmainfont="Noto Sans CJK TC" -f epub "file.epub" -o "file.pdf"

...
Missing character: There is no 自 (U+81EA) in font [lmroman10-regular]:mapping=tex-text!
...

Output file removed.

You must use corect font example IPAGOTHIC for japanese

Install font IPAGOTHIC

yum install ipa-gothic-fonts

Now working

pandoc --pdf-engine=xelatex -V CJKmainfont="IPAGothic" -s -f epub "file.epub" -o "file.pdf"

Leave a Reply