> -----Original Message-----
> From: Pal Perinbam [SMTP:[EMAIL PROTECTED]
> Sent: Tuesday, June 24, 2003 5:13
> To: Paulo Soares; [EMAIL PROTECTED]
> Subject: RE: [iText-questions] Bold fonts not displayed
>
> Hi Paulo,
> Here is the code snippet.
> Earnestly awaiting your reply.
>
> Thank you.
>
> Sincerely yours,
> Pal.
>
>
> BaseFont normal=null;
> BaseFont bold=null;
> normal =
> BaseFont.createFont("c:\\winnt\\fonts\\arial.ttf",BaseFont.IDENTITY_H,Base
> Font.NOT_EMBEDDED);
> bold =
> BaseFont.createFont("c:\\winnt\\fonts\\arialbd.ttf",BaseFont.IDENTITY_H,Ba
> seFont.NOT_EMBEDDED);
>
> Font font10=new Font(normal, 10, Font.NORMAL , null);
> Font font10B=new Font(bold, 10, Font.BOLD , null);
>
The BaseFont is already bold. You don't need to simulate the style
again with Font.BOLD.
> document.add(new Paragraph("Hello World", font10));
> document.add(new Paragraph("Hello World", font10B));
>
> Generate a PDF and view the PDF using Acrobat 5.0.1 3/27/2001. It comes
> very fine with 5.1.0 9/7/2002 and even comes fine in Acrobat 4+ versions.
>
> If you don't have this particular version( 5.0.1 3/27/2001), please
> downlaod it at:
> <http://tucows.wave.net.br/mmedia/adnload/194959_75067.html>
>
>
This is probably a bug with that particular version. It works
correctly with 5.0.5.
Best Regards,
Paulo Soares
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions