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 153582 - Fonts in editor consumes double vertical size
Summary: Fonts in editor consumes double vertical size
Status: VERIFIED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All Linux
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords: JDK_SPECIFIC
: 166516 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-11-20 21:04 UTC by johnsenf
Modified: 2009-06-04 17:09 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Start Page (134.08 KB, text/plain)
2008-11-20 21:17 UTC, johnsenf
Details
Start Page (134.08 KB, image/jpeg)
2008-11-20 21:17 UTC, johnsenf
Details
html -editor (108.18 KB, image/jpeg)
2008-11-20 21:18 UTC, johnsenf
Details
java -editor (80.68 KB, image/jpeg)
2008-11-20 21:19 UTC, johnsenf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description johnsenf 2008-11-20 21:04:51 UTC
All the editors i've checked (xml, java, css) has too much empty space wasted between lines. Changing the font from
default ("Monospaced 13") to something else, doesn't change this spacing issue.

A picture is worth a thousand words etc...  so I'll attach a few to demonstrate (if I can find how to do it in this
issue tracking system)

I use Ubuntu 8.10 with OpenJDK 6 provided in Ubuntu.

//Finn Johnsen
Comment 1 johnsenf 2008-11-20 21:17:44 UTC
Created attachment 73975 [details]
Start Page
Comment 2 johnsenf 2008-11-20 21:17:50 UTC
Created attachment 73976 [details]
Start Page
Comment 3 johnsenf 2008-11-20 21:18:38 UTC
Created attachment 73977 [details]
html -editor
Comment 4 johnsenf 2008-11-20 21:19:16 UTC
Created attachment 73978 [details]
java -editor
Comment 5 johnsenf 2008-11-20 21:23:57 UTC
My Ubuntu is as good as out of the box, freshly installed when 8.10 came out less than a month ago. But I forgot to
mention, I'm using 64 bit.

~$ uname -a
Linux MYHOSTNAME 2.6.27-7-generic #1 SMP Tue Nov 4 19:33:06 UTC 2008 x86_64 GNU/Linux

Please let me know if there is any more information I should provide.
Comment 6 johnsenf 2008-11-20 21:25:29 UTC
Someone please delete attachment id=73975, I specified incorrect mime.
Comment 7 Petr Dvorak 2008-11-20 22:37:33 UTC
As I wrote in the mailing list [1], the workaround is simple on Ubuntu - install Sun's official JDK by typing (in console):

$ sudo apt-get install sun-java6-jdk
$ sudo update-java-alternatives -s java-6-sun

It is free, it has no special disadvantages, you don't need to register, nothing...

Then you can either edit path to jdk in "<nb_install_dir>/etc/netbeans.conf" or you can launch IDE specifying JDK path
explicitly:

$ ./netbeans --jdkhome /usr/lib/jvm/java-6-jdk

I believe we cannot do much on our side, as the problem is in OpenJDK. I am sorry, closing as WONTFIX, not a NetBeans issue.

[1] http://www.nabble.com/Editor-text-wasting-vertical-space-to20606100.html
Comment 8 johnsenf 2008-11-20 23:19:21 UTC
Thanks a bunch!

btw, this is the correct path to use as jdkhome after installing the sun jdk:
/usr/lib/jvm/java-6-sun
Comment 9 Petr Dvorak 2008-11-20 23:26:11 UTC
Oh, you are right - I made lame mistake (...funny I wrote it correctly few lines above...).
Comment 10 Jiri Prox 2009-06-04 17:09:06 UTC
*** Issue 166516 has been marked as a duplicate of this issue. ***