This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 122728 - NetBeans 6.0 RC2 Font Printing Problem with Macintosh Leopard (10.5)
Summary: NetBeans 6.0 RC2 Font Printing Problem with Macintosh Leopard (10.5)
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 6.x
Hardware: Macintosh Mac OS X
: P3 blocker (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-26 01:02 UTC by broghamerjt
Modified: 2009-11-02 11:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Input file screenshot... (31.16 KB, image/png)
2007-11-26 09:17 UTC, Jaromir Uhrik
Details
Snapshot of printed document... (1.33 MB, image/png)
2007-11-26 09:17 UTC, Jaromir Uhrik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description broghamerjt 2007-11-26 01:02:14 UTC
SUBJECT:  NetBeans 6.0 CR2 Font Printing Problem with Macintosh Leopard (10.5)

I am running NetBeans IDE, version 6.0 RC on a Macintosh Dual 2.5 GHz PowerPC G5 with 8 GB of DDR SDRAM memory.  When I upgraded to OS X Leopard 
(10.5.1), the print problem described below started.

When I print to my XEROX Phaser 6250 DT printer, the source file text is distorted.  Both the vertical and horizontal spacing are messed up, making the 
text almost unreadable.  The fonts themselves are also distorted.  I have tried changing fonts with no improvement.  Everything worked fine before the 
upgrade to Leopard and no other application has this problem.

I have had the same problem with NetBeans 5.5.1 and reported it (ID 120422).  Please help.

Joe Broghamer
Comment 1 Jaromir Uhrik 2007-11-26 09:16:20 UTC
I have problems with printing too (Xerox WorkCentre Pro 238). Attached is the screenshot of file that I printed and the
snapshot of the printed document.
Comment 2 Jaromir Uhrik 2007-11-26 09:17:09 UTC
Created attachment 53474 [details]
Input file screenshot...
Comment 3 Jaromir Uhrik 2007-11-26 09:17:59 UTC
Created attachment 53475 [details]
Snapshot of printed document...
Comment 4 Vitezslav Stejskal 2007-11-26 10:19:33 UTC
Could you guys try 'Print to HTML' and open the page in a browser? Is the text distorted too? How does the text look on
the screen? Is it distorted? Could you please also try different fonts, both fixed-width (monospaced) and
variable-width. Also, have you tried printing from some other java/swing applications?

The editor uses the same code for rendering text in different contexts - screen, file, printer. If the text looks bad
only when printing on the printer the issue could be with the drivers or in JDK.
Comment 5 Miloslav Metelka 2007-11-26 14:31:03 UTC
The editor uses NbDocument.Printable and only give out an attributed character iterator for the characters in the
document. So this is likely either a JDK problem or an error in the org.openide.text printing wrapper.
Anyway as Vita mentioned it's necessary to check printing from another java app first.
Comment 6 Jaromir Uhrik 2007-11-26 16:08:11 UTC
I am decreasing priority to P2 because it works fine to print file to HTML first and then send it to the printer. So
that the workaround is:
1/Invoke main menu File|Print to HTML...
2/Enable checkbox Open generated HTML in browser.
3/Push OK button
4/Print the file from the opened browser
 
Comment 7 Jaromir Uhrik 2007-11-26 16:38:14 UTC
I tried to print from the EJE editor (downloaded from sourceforge.net) and the printing is fine from this application.
I also noticed that printing from NetBeans is better when font is not monospaced.
Comment 8 Miloslav Metelka 2007-11-28 15:59:14 UTC
And the EJE editor prints in monospaced by default?
Comment 9 Vitezslav Stejskal 2008-01-10 11:39:18 UTC
Passing to openide/text for evaluation...
Comment 10 Antonin Nebuzelsky 2008-02-04 15:51:35 UTC
Stando, please evaluate.
Comment 11 Jaromir Uhrik 2008-02-04 17:44:07 UTC
Mila asked:
And the EJE editor prints in monospaced by default?
The answer is:
No, the EJE doesn't print in monospaced by default. But the default font is monospaced but it is printed as another font
that is not monospaced.
Sorry for the late response.
Comment 12 Stanislav Aubrecht 2008-02-06 11:41:55 UTC
it's an apple problem - printing on mac os 10.4.x if fine, printing on mac os 10.5.1 is broken. both cases with
jdk1.5.0_13 and trunk version of netbeans 6.1. 
it seems that char width hints (if we use any) are ignored and each character has the same width when printing on
leopard. that's why printouts with fixed-width font will look more or less ok.
i'm not sure if there's anything we can do about this on our side besides filing a bug against apple...
Comment 13 Stanislav Aubrecht 2008-03-06 09:31:32 UTC
lowering priority - this bug affects only a small group of users...
Comment 14 bgw 2008-09-23 18:09:06 UTC
I am having the same font issue.  

Product Version: NetBeans IDE 6.1 (Build 200804211638)
Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-119
System: Mac OS X version 10.5.4 running on i386; MacRoman; en_US (nb)
Userdir: /Users/Briwood/.netbeans/6.1

They way I get around the issue is by using TextWrangler.  I have to select all, copy, paste in to TextWrangler then print. Slow and annoying.

Please fix this issue.
Comment 15 Stanislav Aubrecht 2008-11-21 10:04:18 UTC
i don't have any fix
Comment 16 Quality Engineering 2009-11-02 11:14:31 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX