Sorry if this is a rehash, I searched all night and could not find
anything that solved this problem...

I am trying to use ALIGN_JUSTIFIED to force a single line of text to
align to a known width.  The problem is that the text is identified as
the last line in the paragraph and it is not justified.  Is there a way
to force justification of the last line in a paragraph / phrase using a
ColumnText.  I am currently using the following code:

  ColumnText ct = new ColumnText (m_cb);
  ct.setSimpleColumn (x, y, x + width, y + height, 0f,
Element.ALIGN_JUSTIFIED);
  Paragraph  p = new Paragraph (text, new Font (m_bf, m_fontSize));
  p.setAlignment (Element.ALIGN_JUSTIFIED);
  ct.addText (p);
  ct.go ();




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to