POI - 将新字体导入 POI [英] POI - Importing new fonts to the POI

查看:59
本文介绍了POI - 将新字体导入 POI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将新字体导入带有扩展 ttf & 的 POI APIotf ,不安装这些字体到环境中?

How can i import a new font to POI API with extensions ttf & otf , without install these fonts into the environment ?

是否有一个 jar,我应该用新字体的路径更新它?

Is there a jar that i should update it with the path of the new font ?

推荐答案

通常

您不能添加字体...您可以认为您的(办公室)文件就像 HTML 一样.字体位于文档之外.您只需设置字体名称、系列等

Normally

You cannot add fonts... You can think your (office) files just like HTML. Font lives outside the document. You just set the font name, family, etc.

然而,已经有人尝试这样做了.使用嵌入文件,您可以添加字体文件.

However, someone has already tried to do that. Using embedded files, you could add font files.

链接:

http://apache-poi.1045710.n5.nabble.com/Font-embedding-into-XSLF-td5713937.html

这远非易事.插入嵌入文件没有简单的方法.

It is far from easy. There's no easy way to insert embedded files.

这篇关于POI - 将新字体导入 POI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆