Use fixed width fonts, or use tables: a cell for "Address: " aligned right, and a cell for the rest, aligned left.



feng qian wrote:


Hi,

I created a address phrase as follows:
------------------------------------
new Phrase (
"Address: 123 Williams Road\n" +
"         Reston, VA 12345", MYFONT);
------------------------------------
Then I put the phrase in a table cell, but it could
not align properly and display like this:
-------------------------------------
Address: 123 Williams Road
  Reston, VA 12345
-------------------------------------
Could anyone tell me how to insert the sold spaces for
aligning the text for the second line?

Thanks.

Feng

__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/


------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions





-- Victor Apocalypse Rodrigues System Analyst Try Automatos @ www.automatos.com




------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to