我在 Solaris 中使用 staroffice9 作为服务。使用带有 jodconverter-2.2.2 的 Java 应用程序,尝试将文档转换为 PDF,生成的 PDF 显示字符错误,并且似乎不包括字体。用 Adobe Reader 打开,它说“找不到字体...”
使用文本编辑器阅读 PDF:
% CreateFontSubset failed for font "Arial" weight=5
% CreateFontSubset failed for font "Arial" italic weight=5
% CreateFontSubset failed for font "Arial" weight=8
% CreateFontSubset failed for font "Times New Roman" weight=5
% CreateFontSubset failed for font "Times New Roman" italic weight=5
% CreateFontSubset failed for font "Times New Roman" weight=8
% CreateFontSubset failed for font "Arial Narrow MT" weight=5
% CreateFontSubset failed for font "Arial Narrow MT" weight=8
% CreateFontSubset failed for font "Arial" italic weight=8
在我的机器上,字体似乎已安装:
[xxxxxxxxxx ~]$ fc-list | grep Arial
Arial:style=Regular
Arial Hebrew:style=Regular
Arial Hebrew:style=Bold Italic
Arial:style=Bold Italic
Arial Narrow MT:style=Italic
Arial Narrow MT:style=Bold
Arial Narrow MT:style=Bold Italic
Arial Hebrew:style=Bold
Arial:style=Italic
Arial Hebrew:style=Italic
Arial Narrow MT:style=Regular
Arial:style=Bold
问题是,staroffice9 服务在哪里搜索字体资源?我坚持来自系统。