Chinese fonts use together
FontFactory
Font font = FontFactory.getFont("/fonts/Sansation_Regular.ttf",
BaseFont.IDENTITY_H, BaseFont.EMBEDDED, 0.8f, Font.NORMAL, BaseColor.BLACK);
BaseFont baseFont = font.getBaseFont();
http://renjin.blogspot.hk/2009/01/using-chinese-fonts-in-itextsharp.html
use windows fonts
http://itext-general.2136553.n4.nabble.com/quot-Arial-Unicode-MS-quot-and-FontFactory-registerDirectories-td2158167.html
BaseFont customfont = BaseFont.createFont("/erp/fonts/CONSOLA.TTF", BaseFont.IDENTITY_H, BaseFont.EMBEDDED);
Font consoles = new Font(customfont,11);
Font font = FontFactory.getFont("/fonts/Sansation_Regular.ttf",
BaseFont.IDENTITY_H, BaseFont.EMBEDDED, 0.8f, Font.NORMAL, BaseColor.BLACK);
BaseFont baseFont = font.getBaseFont();
http://www.1728.org/fontlttr.htm
http://renjin.blogspot.hk/2009/01/using-chinese-fonts-in-itextsharp.html
http://tomkuo139.blogspot.hk/2009/08/java-itext-pdf.html
http://wenku.baidu.com/view/1b99f2afd1f34693daef3e79
沒有留言:
張貼留言