0
verdana.ttf
글꼴을 사용하여 Java로 RTF 보고서를 만들려고하는데 Linux에서 작동하지 않습니다.verdana font on linux
아무도 내가 이것을하는 방법을 알고 있습니까?
String contextPath = FacesUtil.getServletContext().getRealPath("\\");
try {
FontFactory.register(contextPath + "WEB-INF\\Fonts\\verdana.ttf");
} catch (Exception e) {
e.printStackTrace();
}
if (negrito) {
font = FontFactory.getFont("Verdana", 8, Font.BOLD, new Color(0, 0, 0));
}
cell = new Cell(new Paragraph(paragraph, font));
cell.setBackgroundColor(new Color(255, 255, 255));
cell.setBorderColor(new Color(255, 255, 255));
if (center)
cell.setHorizontalAlignment(Cell.ALIGN_LEFT);
cell.setRowspan(1);
cell.setColspan(1);
return cell;
정의는 "작동하지 않습니다." 네 문제가 뭐니? –