openjdk team mailing list archive
-
openjdk team
-
Mailing list archive
-
Message #08038
[Bug 937200] Re: Fat fonts in Swing applications
Okay - I played a little bit around and got this results:
The only thing that is relevant for this problem seems to be the setting
"font-name". The other font settings don't matter.
That can be changed with:
gsettings set org.gnome.desktop.interface font-name 'Droid Sans 10'
Now it should with *non-default* Look-and-Feels (e.g. Nimbus, GTK).
Details:
I am setting my font settings using this script:
--------------------
gsettings set org.gnome.desktop.interface document-font-name 'Droid Sans 10'
gsettings set org.gnome.desktop.interface font-name 'Droid Sans 10'
gsettings set org.gnome.desktop.interface monospace-font-name 'ProFontWindows 8'
gsettings set org.gnome.nautilus.desktop font 'Droid Sans 10'
gconftool --set /apps/metacity/general/titlebar_font 'Droid Sans Bold 10' --type STRING
--------------------
Reading the values using
--------------------
echo "Document Font: "
gsettings get org.gnome.desktop.interface document-font-name
echo "Font: "
gsettings get org.gnome.desktop.interface font-name
echo "Monospaced Font: "
gsettings get org.gnome.desktop.interface monospace-font-name
echo "Nautilus Desktop Font: "
gsettings get org.gnome.nautilus.desktop font
echo "Titlebar Font: "
gconftool --get /apps/metacity/general/titlebar_font
--------------------
I got the following:
With changed fonts, it looks ok, when:
- Nimbus or GTK LnF is used
It *does* work with the default LnF.
The AA settings just do what one expects: The change the AA settings...
--
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-7” package in Ubuntu:
Confirmed
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/ubuntu/+source/openjdk-7/+bug/937200/+subscriptions
References