Table aTable = new Table(2, 2);
float[] intheaderwidths = { 18, 18};
aTable.setWidths(intheaderwidths);
aTable.setWidth(36);
BaseFont bfChinese = BaseFont.createFont("STSong-Light", "UniGB-UCS2-H", false);
Font FontChinese = new Font(bfChinese, 12, Font.NORMAL);
Phrase ph = new Phrase("中文显示", FontChinese);
Cell cell = new Cell(ph);
aTable.addCell(cell);
......
float[] intheaderwidths = { 18, 18};
aTable.setWidths(intheaderwidths);
aTable.setWidth(36);
BaseFont bfChinese = BaseFont.createFont("STSong-Light", "UniGB-UCS2-H", false);
Font FontChinese = new Font(bfChinese, 12, Font.NORMAL);
Phrase ph = new Phrase("中文显示", FontChinese);
Cell cell = new Cell(ph);
aTable.addCell(cell);
......
解决方案 »
- 面试多选:请指教
- 一个关于java垃圾回收机制的问题
- 求一个sql语句,怎么统计插入 更新 删除 到另一个表中
- 关于jxta的JxtaUnicastSecure广告的问题
- 怎样用jbuilder2005将一个.class文件做成.exe的文件??
- 编译不成功,很奇怪,大家来看看,基础的问题
- TextField 如何获取焦点
- Java对Oracle数据库中的信息进行增删改后, 要进行commit提交吗? 要的话怎么执行?
- jar命令如何用,我想把com/ora/jsp/sql下的所有class弄成jar文件
- 请那位大侠帮我修改以下,为什么我的程序调试不出结果
- net编程,关于cookie的问题,请指教
- 哪位有java版的阿拉伯数字金额转换为大写金额的程序???
BaseFont bfChinese = BaseFont.createFont("STSong-Light", "UniGB-UCS2-H", BaseFont.NOT_EMBEDDED);
Font FontChinese = new Font(bfChinese, 12, Font.NORMAL);
Chunk chunk = new Chunk("\u6e96\u53d7\u4fdd\u4eba", FontChinese);
document.add(chunk);
Missing configuration files for CJK fonts
Font 'STSong-Light' with 'UniGB-UCS2-H' is not recognized.
不知道是什么原因,望指教