Hello guys,

I try to create a vertical text with normal and bold text.
My text is in chinese.
I use UTF-8 encoding for wording integration from an external file.
I use arialuni.ttf font.

When working with simple document.add(new Phrase(myText,myFont))  in an
Horizontal  format, everything is ok. Texts appears in bold when needed.

But when using the VerticalText, I can't get bold caracters. Is that normal
?

here is the test source code :

Document document = new Document();
PdfWriter writer        = PdfWriter.getInstance(document, new
FileOutputStream(filename));
bf              = BaseFont.createFont(fontName, BaseFont.IDENTITY_V,
BaseFont.EMBEDDED);
Font font0      = new Font( bf, 10 );
Font font1      = new Font( bf, 10, Font.BOLD );

VerticalText vt = new VerticalText(writer.getDirectContent());
vt.setVerticalLayout(250, 250, 100, 20, 1);

vt.addText(new Chunk(myTexte, font1)); // Same effect with new Phrase
vt.addText(new Chunk(myTexte, font1)); // same effect with new Phrase
vt.go();
document.close();

If anyone could help ..




--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/How-to-insert-bold-text-in-VerticalText-tp4656887.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
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