you can refer to ch9 (Fonts) to find the answer
if you use ttf fonts you can use the(bold ,italic,..) versions of the font as follows
to write with arial italic use the font ariali instead of arial as follows
BaseFont arialItalic = BaseFont.createFont("ariali.ttf", BaseFont.WINANSI,
BaseFont.EMBEDDED);
cb.setFontAndSize(arialItalic , 12);
thank you
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: ØÙØØØØØØ 20/05/1425 12:00 Ù
To: [EMAIL PROTECTED]
Cc:
Subject: [iText-questions] Question about iText
Hi
I'm using iText in my Java program. I think it's a good product.
But I have a problem. I don't know how can I set bold, italic and underline
for an absolute-positioned text.
I mean:
cb = writer.getDirectContent();
page1 = writer.getImportedPage(reader, 1)
cb.addTemplate(page1, 0, 0);
cb.beginText();
String docFont = "Courier";
BaseFont bf = BaseFont.createFont(docFont, BaseFont.WINANSI,
BaseFont.NOT_EMBEDDED);
cb.setFontAndSize(bf, docDimFont);
cb.showTextAligned(PdfContentByte.ALIGN_LEFT, temp, curPdfX, curPdfY, 0);
...
But I can't find the way to set the character properties (bold, italic,
underline). It's important, and I cannot write text using chunks, paragraphs
and so on, only by absolute positioning. It's a problem.
Please answer me to [EMAIL PROTECTED]
Thank you very much.
__________________________________________________________________
Tiscali ADSL libera la velocita'!
Attiva Senza Canone entro il 12 luglio: navighi a 1,5 euro l'ora per i primi
3 mesi,se scegli il modem e' tuo in comodato gratuito e in piu' hai gratis
SuperMail per 12 mesi. Non aspettare, attivala subito!
http://abbonati.tiscali.it/adsl/prodotti/640Kbps/
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions