List of usage examples for com.itextpdf.io.font PdfEncodings UTF8
String UTF8
To view the source code for com.itextpdf.io.font PdfEncodings UTF8.
Click Source Link
From source file:org.reactome.server.tools.diagram.exporter.raster.itext.awt.DefaultFontMapper.java
License:Open Source License
public DefaultFontMapper() { byte[] bytes; try {//from ww w . ja v a 2 s .c om bytes = IOUtils.toByteArray(Resources.class.getResourceAsStream("fonts/arial.ttf")); REGULAR = PdfFontFactory.createFont(bytes, PdfEncodings.UTF8, true, true); bytes = IOUtils.toByteArray(Resources.class.getResourceAsStream("fonts/arialbd.ttf")); BOLD = PdfFontFactory.createFont(bytes, PdfEncodings.UTF8, true, true); } catch (IOException e) { e.printStackTrace(); } }