Khmer Unicode in iText

ぐ巨炮叔叔 提交于 2019-12-22 17:38:31

问题


I'm very new in iText.
Now I want to display Khmer Unicode in iText, but I can't do it. Does any one know how to do it? Please advise me.

Regards, LeeJava


回答1:


According to you, the owner of the question in another post, iText is not support Khmer Unicode.

I made summarize on this again as well on my blog: http://ask.osify.com/qa/287

Only we have to modify the source code of iText but until now no one claim that they will work on it so iText is not the right choice for us with Khmer Unicode yet until the source modify.

Another alternative solution, we have to use Openoffice doc with JODConverter, for me, I'm still in experiment this one but with quick test, it's working fine.

We just have another issue with creating the openoffice doc that could put Khmer unicode rendering as stated shortly in http://ask.osify.com/qa/318

Updated 13/01/2016

  • I have added the source code sample for the rendering: http://ask.osify.com/qa/613
  • The rendering customization with iText for Khmer Unicode added in github: https://github.com/Seuksa/iTextKhmer



回答2:


if its anything like a normal font your gonna want something like

Font myfont= new Font(BaseFont.createFont("Font location", "encoding, "embedded"));   

most fonts are located under c:\windows\fonts




回答3:


Font font = new Font("khmer", Font.PLAIN ,33);
iText.setFont(font);


来源:https://stackoverflow.com/questions/7427555/khmer-unicode-in-itext

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!