← Back to team overview

openjdk team mailing list archive

[Bug 937200] Re: Fat fonts in Swing applications

 

** Patch added: "debdiff for saucy"
   https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/937200/+attachment/4056164/+files/openjdk-7_7u51-2.4.4-0ubuntu0.13.10.2.debdiff

-- 
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 “fonts-unfonts-core” package in Ubuntu:
  Invalid
Status in “openjdk-7” package in Ubuntu:
  Fix Committed
Status in “fonts-unfonts-core” source package in Precise:
  Invalid
Status in “openjdk-7” source package in Precise:
  Triaged

Bug description:
  SRU justification:

  [Impact]

  When certain combinations of font packages are installed, the Java
  font loader may load certain fonts with some of their styles missing,
  meaning the wrong style is rendered when that font is chosen.

  The most well-known example is on Ubuntu systems with fonts-unfonts-
  core installed (recommended by Wine): the Ubuntu font is loaded
  without its regular style, so in Swing applications using the GTK look
  and feel, the Ubuntu font is rendered in bold weight.

  [Test Case]

  1. Install openjdk-7-jdk, ttf-ubuntu-font-family, and fonts-unfonts-
  core.

  2. Download the test case from comment #61:
  https://launchpadlibrarian.net/161520209/TestCase.java

  3. Compile and run the test case:

    javac TestCase.java
    java TestCase

  4. The expected output should begin with:

  Font family: Ubuntu plain=** TrueType Font: Family=Ubuntu Name=Ubuntu
  [...]

  The current (broken) output begins with:

  Font family: Ubuntu plain=null bold=** TrueType Font: Family=Ubuntu
  Name=Ubuntu Bold [...]

  Note "plain=null" in the broken output, meaning the bold style is
  going to be used when plain was requested.

  [Regression Potential]

  * The patch was authored by the maintainer of the surrounding code,
  and reviewed and accepted upstream.

  * If there is a regression, it might be reported upstream against JDK8
  or JDK9, so we should be aware of any upstream fixes in that part of
  the code.

  * If there is a regression, the symptoms are likely to be similar to
  this bug: incorrect or incomplete font loading in certain
  configurations.

  Original 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/ubuntu/+source/fonts-unfonts-core/+bug/937200/+subscriptions


References