** Description changed: + 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 - 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. + 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)
** Patch added: "debdiff for precise" https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/937200/+attachment/4056163/+files/openjdk-7_7u51-2.4.4-0ubuntu0.12.04.3.debdiff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/937200 Title: Fat fonts in Swing applications To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/fonts-unfonts-core/+bug/937200/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
