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.
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
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.
Created attachment 53474 [details] Input file screenshot...
Created attachment 53475 [details] Snapshot of printed document...
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.
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.
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
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.
And the EJE editor prints in monospaced by default?
Passing to openide/text for evaluation...
Stando, please evaluate.
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.
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...
lowering priority - this bug affects only a small group of users...
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.
i don't have any fix
NetBeans.org Migration: changing resolution from LATER to WONTFIX