编译 pdf 的时候无法显示中文的问题
catroll opened this issue · comments
胡昂 commented
系统环境:Ubuntu 18.04
软件环境:
sudo apt install -y xsltproc
sudo apt install -y libxml2-utils
sudo apt install -y docbook-xml docbook-xsl
sudo apt install -y tidy
sudo apt install -y default-jdk
sudo apt install -y fop
sudo apt install -y libpdfbox-java
执行命令:
make pdf
输出:
Creating and cleaning /home/catroll/tmp
Processing bootscripts...
Adjusting for revision sysv...
Validating the book...
Validation complete.
Generating profiled XML for PDF...
Generating FO file...
Making portrait pages on A4 paper (210mmx297mm)
Generating PDF file...
~/lfs-book/LFS-BOOK.pdf created
fop.log created
中文全部显示的 #
胡昂 commented
已解决,关闭吧。
和自己猜想的一样,字体问题。
在 pdf.xsl 和 lctt-chinese-fonts.xsl 中看到使用了文泉驿的字体。
sudo apt install -y fonts-wqy-microhei fonts-wqy-zenhei