如何将扩展名为 ttf 和 otf 的新字体导入 POI API,而不将这些字体安装到环境中?
Is there a jar that i should update it with the path of the new font ?
最佳答案
通常
您无法添加字体... 您可以将您的(办公室)文件视为 HTML。字体位于文档之外。您只需设置字体名称、系列等即可。
更新:
但是,已经有人尝试这样做了。使用嵌入文件,您可以添加字体文件。
链接:
http://apache-poi.1045710.n5.nabble.com/Font-embedding-into-XSLF-td5713937.html
这远非易事。没有简单的方法来插入嵌入文件。
关于java - POI - 将新字体导入 POI,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22453259/