← Back to team overview

openjdk team mailing list archive

[Bug 937200] Re: Fat fonts in Swing applications

 

The OpenJDK folks know about this bug and have an issue open for it,
https://bugs.openjdk.java.net/browse/JDK-8012351 (but sadly LP doesn't
understand JIRA bugs yet, bug 157488).

Only OpenJDK developers can post bug comments on that site, so I sent a
summary of my investigation to the Java2D development list:
http://mail.openjdk.java.net/pipermail/2d-dev/2014-January/004111.html

xnox already filed bug 1003857 for teaching fontconfig about the Ubuntu
fonts.

pdknsk (pdknsk) wrote on 2014-01-04:
> I don't know if it's relevant, but this bug also occurs with deb packages 
> build from the official Oracle releases via java-package.

Since the buggy code I identified is in the "sun.font" package, I think
(hope) the code is shared between OpenJDK and Oracle JDK. We're close to
the release of JDK 8, though, so I wouldn't count on having this fixed
in JDK 7.

pdknsk (pdknsk) wrote on 2014-01-04:
> PS. As already mentioned, removing fonts-uncore-extra is not a proper 
> workaround as it sets the fonts to Ubuntu Light and not Ubuntu. It's better 
> than having bold fonts though.

I would be interested to see the output of my TestCase.java (attached to
comment 61) on your system.

I do think installing the JDK6 fontconfig.Ubuntu.properties is a better
workaround than uninstalling unfonts. I'll try to come up with an
updated fontconfig file since, as pcworld mentioned in comment 56, it's
not quite correct for modern Ubuntu.

Alberto, thanks for keeping the bug status up to date! :)

** Also affects: openjdk
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-7 in Ubuntu.
https://bugs.launchpad.net/bugs/937200

Title:
  Fat fonts in Swing applications

Status in OpenJDK:
  New
Status in “fonts-unfonts-core” package in Ubuntu:
  Invalid
Status in “openjdk-7” package in Ubuntu:
  Triaged

Bug description:
  Since I upgraded to Ubuntu 12.04 I noticed that the fonts in Java
  Swing applications use the bold font weight. This looks really ugly
  and takes up to much space.

  
  1.
  lsb_release -rd
  Description:	Ubuntu precise (development branch)
  Release:	12.04

  
  2. 
  apt-cache policy openjdk-7-jdk 
  openjdk-7-jdk:
    Installiert: 7~b147-2.0-1ubuntu2
    Kandidat:    7~b147-2.0-1ubuntu2
    Versionstabelle:
   *** 7~b147-2.0-1ubuntu2 0
          500 http://archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages
          100 /var/lib/dpkg/status

  3. 
  Applications rendering with normal fonts

  4.
  Applications rendering with bold fonts

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: openjdk-7-jdk 7~b147-2.0-1ubuntu2
  ProcVersionSignature: Ubuntu 3.2.0-17.26-generic 3.2.6
  Uname: Linux 3.2.0-17-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 1.92-0ubuntu1
  Architecture: amd64
  Date: Mon Feb 20 20:44:43 2012
  InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
  SourcePackage: openjdk-7
  UpgradeStatus: Upgraded to precise on 2012-02-16 (3 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/openjdk/+bug/937200/+subscriptions


References