Sorry for the previous messagge ....

My question is a really simple one ... If I use

Font helv7B = new Font(Font.HELVETICA,7,Font.BOLD);

is this font automatically embedded in the PDF? If yes, it suits what I
intend to do now but ... I thought that a BaseFont is a base font, i mean,
using the same type i can use it with different styles, so why  if i do, for
instance,

            BaseFont helvetica = BaseFont.createFont(BaseFont.HELVETICA,
BaseFont.CP1252, BaseFont.EMBEDDED);
            Font font = new Font(helvetica, 12, Font.ITALIC);
            Chunk chunk = new Chunk("Sponsor this example and send me \n",
font);
            Phrase p = new Phrase(chunk);
            Font font2 = new Font(helvetica, 12, Font.BOLD);
            chunk = new Chunk("one beer", font2);
            p.add(chunk);
            document.add(p);

i don't get the first sentence ITALIC and the last BOLD? Instead if i use

            Font font = new Font(Font.HELVETICA, 12, Font.ITALIC);
            Font font2 = new Font(Font.HELVETICA, 12, Font.BOLD);

it works. I read Chapters 2 & 9 and i don't undertstand it :-(

Thanks

Regards

Sergio


-----------------------------------------------------------------------
Este mensaje y los documentos, que en su caso, lleve anexos, pueden
contener informacion confidencial y ataņe exclusivamente a las personas
a las que va dirigido. Cualquier opinion en el contenida, es exclusiva de
su autor y no representa necesariamente la opinion de AZERTIA.
Si usted no es el destinatario de este mensaje, considerese advertido de
que lo ha recibido por error y que cualquier uso, difusion o copia estan
prohibidos legalmente. Si ha recibido este mensaje por error, le rogamos
que nos lo comunique por la misma via o al telefono 93 207 55 11 y proceda
a destruirlo inmediatamente.  

This email is confidential and intended solely for the use of the individual
to whom it is addressed. Any views or opinions presented are solely those
of the author and do not necessarily represent those of AZERTIA.
If you are not the intended recipient, be advised that you have received
this email in error and that any use, dissemination, forwarding, printing,
or copying of this email is strictly prohibited.
If you have received this email in error please notify it to AZERTIA
by telephone on number +34 93 207 55 11.
-----------------------------------------------------------------------

_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to