I am creating a PDF document that requires all characters to be the same width.

protected static Font defaultFont = FontFactory.getFont(FontFactory.COURIER, 6, 
Font.NORMAL);
 
However, I find that the whitespaces have different width than the other 
letters and numbers.
Is there a way to force the wide of the whitespaces to use the same width?
 
I have tried to set the widths of a BaseFont to be 500,  setForceWidthsOutput 
to be true, and then create the defaultFont using the BaseFont:
  
Font defaultFont = new Font(baseFont, 6, Font.NORMAL);
 
However, this does not solve the whitespace issue.  The space character is 
still wider than the other characters.
 
Did anyone come across this problem before?
 
Thanks in advance


      

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to