Extend DefaultFontMapper and use insertNames() to register a single file.

Best Regards,
Paulo Soares

> -----Original Message-----
> From: Hubert Lingo [SMTP:[EMAIL PROTECTED]
> Sent: Thursday, August 14, 2003 13:09
> To:   [EMAIL PROTECTED]
> Subject:      [iText-questions] DefaultFontMapper
> 
> I'm experencing some difficulties in using the DefaultFontMapper. Here is 
> the case :
> 
> I create a TTF with the java.awt.Font.createFont(Font.TRUETYPE_FONT, 
> InputStream myInputStream) method.
> Then, I want to use the DefaultFontMapper to use with the 
> pdfWriter.getDirectContent().createGraphics(height, width, fontMapper).
> But I can't imagine how to use the DefaultFontMapper. I understood the 
> insertDirectory() method (which I do not want to use), and I saw in the 
> source that it does a lot of things.
> Should I use the insertNames(), myself ? Is it the right way of doing this
> ? 
> I mean : should I have to reimplement a FontMapper myself, accepting AWT 
> fonts ?
> 
> Thanks for any help.
> 
> Hubert
> 
> _________________________________________________________________
> MSN Messenger : discutez en direct avec vos amis ! 
> http://www.msn.fr/msger/default.asp
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/0
> 1
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to