If the font is not registered in FontFactory it won't work either.

Paulo

----- Original Message ----- 
From: "Bruno Lowagie" <[EMAIL PROTECTED]>
To: "Post all your questions about iText here" 
<[email protected]>
Sent: Wednesday, January 31, 2007 8:43 AM
Subject: Re: [iText-questions] How to render different Fontstyles to PDFfile 
using iTextSharp.


> Venkat Tubati wrote:
>> In this code, if assigned some fonts(like: MornotypeCorsiva) it is
>> assigning to the default font style(Helvetica).
>>
>> where i need to change my code please let me know.
>
> When you need a BaseFont (for instance for use in PdfContentByte),
> try creating the BaseFont object with BaseFont.createFont()
> and provide the correct path to the font program.
> Chances are the font program MornotypeCorsiva (which by the way
> should probably be MonotypeCorsiva) is not found in which case
> the default font is returned by the FontFactory.
>
> br,
> Bruno
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share 
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> 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/ 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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