Op 4/03/2013 9:36, ponraj.muthus...@cognizant.com schreef:
Hi
I found in the below link:
http://www.mikesdotnetting.com/Article/81/iTextSharp-Working-with-Fonts that
support 14 fonts of type 1.
Obviously you didn't read the complete article.
For instance:
This method will work directly with all fonts registered by iTextSharp,
which includes all fonts found in the Windows default font directory. On
Win XP Pro, that's usually C:/WINDOWS/Fonts. If you want a list of all
the registered fonts, the FontFactory.RegisteredFonts collection holds them.
You may have a situation where you cannot install a font you want to use
in the default font directory on the web server, so you have to register
it explicitly with iTextSharp.
string fontpath = Server.MapPath(".");
BaseFont customfont = BaseFont.CreateFont(fontpath + "myspecial.ttf",
BaseFont.CP1252, BaseFont.EMBEDDED);
Font font = new Font(customfont, 12);
string s = "My expensive custom font.";
doc.Add(new Paragraph(s, font));
I'm new to iTextsharp and I found very few font in Font class.
You're new to iTextSharp. You searched and found an article, but you
didn't read it? Why not?
Kindly let me know whether it supports windows fonts and UniCode fonts.
I've already answered that question. Of course it does!
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php