Fat fonts in Swing applications
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
fonts-unfonts-core (Ubuntu) |
Invalid
|
Low
|
Unassigned | ||
Precise |
Invalid
|
Low
|
Unassigned | ||
openjdk-7 (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Precise |
Fix Released
|
Low
|
Unassigned |
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-
2. Download the test case from comment #61: https:/
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://
100 /var/lib/
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
ProcVersionSign
Uname: Linux 3.2.0-17-generic x86_64
NonfreeKernelMo
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)
tags: | added: raring saucy |
tags: | added: trusty |
Changed in openjdk-7 (Ubuntu): | |
status: | Confirmed → Triaged |
Changed in openjdk: | |
assignee: | nobody → Ryan Tandy (rtandy) |
tags: | added: patch |
Status changed to 'Confirmed' because the bug affects multiple users.