Hi,
sorry to answer so late. Had some Christmas days off :-)
 
I had the same problem and resolved the font loading as follows:
 
InputStream ris = this.getClass().getResourceAsStream("/DejaVuSansMono.ttf");
byte[] ttfAfm = IOUtils.toByteArray(ris);
ris.close();
BaseFont dejaVuSans = BaseFont.createFont("DejaVuSansMono.ttf", 
BaseFont.IDENTITY_H, true, true, ttfAfm, null);

Try-Catch and this things are required.

Good luck

Elmar


 

<<winmail.dat>>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to