← Back to team overview

openjdk team mailing list archive

[Bug 255983] Re: openjdk label display in swing ui elements takes up too much vertical space

 

Just lost some hours trying to get this working on my Jaunty
installation.

I also found that modifying the fontconfig.properties file resolved the problem.
I'm currently using fr_BE.UTF-8 as my locale.

The remaining problem does not come from some bug in the jdk, but only
the UTF-8 fonts configuration.

The fontconfig.properties file contains the following line:
sequence.allfonts.UTF-8=latin-1,wqy-zenhei,japanese-vlgothic,japanese-kochi,japanese-sazanami,korean-un,korean-baekmuk,bengali,oriya,telugu
If you remove the last three groups it solves the problem.

It seems the openjdk code tries to get a maximum character size, and
since the bengali,oriya,telugu characters takes more vertical space than
latin-1 one, the global vertical space is increased.

For info, Sun's jdk (as seen in the sun-java6-jdk package) does not
include those fonts.

I did not searched who is responsible of this fontconfig.properties file
Ubuntu, Debian or upstream, but either there is a more compact font for
those languages, or they should be removed from the list (as other
languages like hindi, tamil, ...)

-- 
openjdk label display in swing ui elements takes up too much  vertical space  
https://bugs.launchpad.net/bugs/255983
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-6 in ubuntu.

Status in OpenJDK: Confirmed
Status in “openjdk-6” source package in Ubuntu: Fix Released
Status in openjdk-6 in Ubuntu Hardy: Triaged
Status in openjdk-6 in Ubuntu Intrepid: Triaged
Status in openjdk-6 in Ubuntu Jaunty: New

Bug description:
i am on Ubuntu 8.04.1, effect is the same on i386 and amd64, Package: openjdk-6-jre, Version: 6b11-2ubuntu2

Swing UI elements (lists, labels) have additional vertical space, some applets user interfaces are therefore broken with openjdk. In contrast sun-java6-jre works fine with tvbrowser and other applets. I attached a good and a bad png-image. The java program to render the example is ugly but still useable with openjdk but i think the error is shown clearly in comparison of the bad openjdk.png with the good sun sun-java.png.



References