You need a .afm and a .pfb. There are tools to convert .pfm into .afm. 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Vitor Fonseca
> Sent: Wednesday, January 19, 2005 11:33 AM
> To: [email protected]
> Subject: [iText-questions] Using Type 1 Font
> 
> 
> Hi,
> 
> 
> I'm trying to use a type 1 font (Rotis Semi Serif) in a pdf, but i'm
> getting an error.
> 
> I have two files (rf______.PFM, rf______.PFB) that i've 
> already installed
> in the "windows\fonts". I have the following code:
> 
>             BaseFont bfComic =
> BaseFont.createFont("c:\\windows\\fonts\\rf______pfb",
> BaseFont.WINANSI, BaseFont.EMBEDDED);
>             Font font = new Font(bfComic, 12);
> 
> But when i try to use the font in a paragraph (document.add(new
> Paragraph("Example"), font);), i get an error 
> (java.io.IOException: The
> document has no pages.)
> 
> It works fine with "ttf" fonts, but not with this one.
> 
> 
> Thanks in advance.
> 
> Vitor Fonseca
> Portugal
> 
> 
> 
> 
> -------------------------------------------------------
> The SF.Net email is sponsored by: Beat the post-holiday blues
> Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
> It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to