bytes = JRLoader.loadBytesFromLocation(pdfFont.getPdfFontName(), classLoader, urlHandlerFactory, fileResolver);
}
catch(JRException e)
{
throw //NOPMD
new JRRuntimeException(
"Could not load the following font : "
+ "\npdfFontName : " + pdfFont.getPdfFontName()
+ "\npdfEncoding : " + pdfFont.getPdfEncoding()
+ "\nisPdfEmbedded : " + pdfFont.isPdfEmbedded(),
initialException
);
}
BaseFont baseFont = null;
try
{
baseFont =
BaseFont.createFont(
pdfFont.getPdfFontName(),
pdfFont.getPdfEncoding(),
pdfFont.isPdfEmbedded(),
true,
bytes,
null
);
}
catch(DocumentException e)
{
throw new JRRuntimeException(e);
}
catch(IOException e)
{
throw new JRRuntimeException(e);
}
font =
new Font(
baseFont,