First this: please register to the mailing-list.
You may assume that you are registered, but you are not.
See http://lowagie.com/nabble

Op 8/11/2012 11:12, Xavier schreef:
> Hello guys,
>
> I try to create a vertical text with normal and bold text.

For this to work you need to use a font family such as Arial with 
different fonts such as arial.ttf, ariali.ttf, arialb.ttf and arialbi.ttf

> My text is in chinese.

But the fonts I mentioned, don't support Chinese glyphs, so you need to:

> use arialuni.ttf font.

The arialuni.tff font only has regular glyphs (no bold, no italic, no 
bolditalic).
And that's why this doesn't work:

> Font font0    = new Font( bf, 10 );
> Font font1    = new Font( bf, 10, Font.BOLD );

So you have to use a workaround.
This workaround is explained in the book, more specifically in chapter 3.

If you want a Chunk to be 'bold', you can change the render mode like this:
Chunk c = new Chunk(myBoldChineseText, font0);
c.setTextRenderMode(PdfContentByte.TEXT_RENDER_MODE_FILL_STROKE, 1, null);

------------------------------------------------------------------------------
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_nov
_______________________________________________
iText-questions mailing list
[email protected]
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

Reply via email to