Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 x/y/z 路径上安装了 dejavu 字体,并且我使用的是 open Jdk 8 (Zulu)。使用在 Apache 上运行的应用程序时,出现未找到字体错误。供您参考,网页应用程序也包含图像。
将字体的路径添加到/etc/fonts/fonts.conf:
/etc/fonts/fonts.conf
<fontconfig> <dir>x/y/z</dir>
此外,您可能需要删除$HOME/.java/fonts/*
$HOME/.java/fonts/*