错误写法:
BaseFont baseFT = BaseFont.CreateFont("d:\SIMSUN.TTC", BaseFont.IDENTITY_H, BaseFont.EMBEDDED);
正确写法:
BaseFont baseFT = BaseFont.CreateFont("d:\SIMSUN.TTC,1", BaseFont.IDENTITY_H, BaseFont.EMBEDDED);
字体应该是数组形式存在,需要下标形式获取对象。
错误写法:
BaseFont baseFT = BaseFont.CreateFont("d:\SIMSUN.TTC", BaseFont.IDENTITY_H, BaseFont.EMBEDDED);
正确写法:
BaseFont baseFT = BaseFont.CreateFont("d:\SIMSUN.TTC,1", BaseFont.IDENTITY_H, BaseFont.EMBEDDED);
字体应该是数组形式存在,需要下标形式获取对象。