Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Print plain text with Printable interface  RSS feed

 
Claudio Gualberto
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I�m trying to implement an printing component
to use with an simple Java application, and i�m having problems with the fonts.
The kind of printing is text plain, thus i must use an font that has fixed dimensions ( all characters with the same width and height ) to make the line breaking easer.
I�ve just use the Courier text plain Font object, but it does not work ( the width is variable ).
I�d like to know if is there some method to print text plain ( not using an Graphic context just like in Printable interface, maybe getting an stream to printer... ), or to get an
fixed dimension font object to use with Printable.
Thanks in advance.
Claudio Gualberto.
 
Chantal Ackermann
Ranch Hand
Posts: 508
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
isn't there the font "monospaced"?
Chantal
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!