pescuma / swt-paperclips

Automatically exported from code.google.com/p/swt-paperclips
0 stars 0 forks source link

Monospaced fonts in Print Preview display improperly in StyledTextPrintExample.java #32

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  Download code snippets and import them into Eclipse 
2.  Run StyledTextPrintExample.java

What is the expected output? What do you see instead?

The expected output from running StyledTextPrintExample.java would be a variety 
of text displayed, with some words typed in a monospace font.  Instead of being 
monospace, the letters are all jumbled into the same space, even though the 
preview does allocate the proper amount of space for the word.
If the print button is pressed, the print produced has no issues with the 
monospace font, and it displays properly.  A screen shot of the print preview 
is attached.

What version of the product are you using? On what operating system?

Windows XP Professional, Version 2002, Service Pack 3
swt-3.5.2-win32-win32-x86
net.sf.paperclips.examples.source_1.0.4.20098120926
net.sf.paperclips.ui_1.0.4.20098120926
net.sf.paperclips_1.0.4.20098120926

Please provide any additional information below.

Thank you for developing this toolkit!

Original issue reported on code.google.com by zo0o...@gmail.com on 27 Aug 2010 at 3:38

Attachments:

GoogleCodeExporter commented 9 years ago
Your Courier font may be corrupted.  I had a similar problem with the Times 
font installed by my HP printer software, see 
https://bugs.eclipse.org/bugs/show_bug.cgi?id=140928

Try changing the code to refer to a difference monospace font and see if that 
fixes the issue.

Original comment by qualidaf...@gmail.com on 29 Dec 2010 at 7:50