Hi,
We were sick of looking at the spaced out fonts from JDK 1.2 pre-v1
and none of the several fixes that we tried seemed to work. After a
concerted effort we came up with this workaround.
1. Install the URW fonts (from http://www.gimp.org/fonts.html and other
places). Redhat users may have them already in
/usr/X11R6/lib/X11/fonts/URW/
2. Adjust your X server font path according to the instructions for the
URW fonts... ie, unscaled bitmaps, URW, other scalable, bitmaps.
3. Add the following lines to the end of
/usr/X11R6/lib/X11/fonts/75dpi/fonts.alias
-b&h-lucidabright-demibold-r-normal--0-0-0-0-p-0-iso8859-1
-b&h-lucidabright-demibold-r-normal--0-0-0-0-p-0-iso8859-1
-b&h-lucidabright-demibold-i-normal--0-0-0-0-p-0-iso8859-1
-b&h-lucidabright-demibold-i-normal--0-0-0-0-p-0-iso8859-1
-b&h-lucidabright-medium-i-normal--0-0-0-0-p-0-iso8859-1
-b&h-lucidabright-medium-i-normal--0-0-0-0-p-0-iso8859-1
-b&h-lucidabright-medium-r-normal--0-0-0-0-p-0-iso8859-1
-b&h-lucidabright-medium-r-normal--0-0-0-0-p-0-iso8859-1
-b&h-lucidasans-bold-r-normal-sans-0-0-0-0-p-0-iso8859-1
-b&h-lucida-bold-r-normal-sans-0-0-0-0-p-0-iso8859-1
-b&h-lucidasans-bold-i-normal-sans-0-0-0-0-p-0-iso8859-1
-b&h-lucida-bold-i-normal-sans-0-0-0-0-p-0-iso8859-1
-b&h-lucidasans-medium-i-normal-sans-0-0-0-0-p-0-iso8859-1
-b&h-lucida-medium-i-normal-sans-0-0-0-0-p-0-iso8859-1
-b&h-lucidasans-medium-r-normal-sans-0-0-0-0-p-0-iso8859-1
-b&h-lucida-medium-r-normal-sans-0-0-0-0-p-0-iso8859-1
-b&h-lucidatypewriter-bold-r-normal-sans-0-0-0-0-m-0-iso8859-1
-b&h-lucidatypewriter-bold-r-normal-sans-0-0-0-0-m-0-iso8859-1
-b&h-lucidatypewriter-bold-i-normal-sans-0-0-0-0-m-0-iso8859-1
-b&h-lucidatypewriter-bold-i-normal-sans-0-0-0-0-m-0-iso8859-1
-b&h-lucidatypewriter-medium-i-normal-sans-0-0-0-0-m-0-iso8859-1
-b&h-lucidatypewriter-bold-r-normal-sans-0-0-0-0-m-0-iso8859-1
-b&h-lucidatypewriter-medium-r-normal-sans-0-0-0-0-m-0-iso8859-1
-b&h-lucidatypewriter-medium-r-normal-sans-0-0-0-0-m-0-iso8859-1
If this looks like gibberish, here's an explanation.
The names on the left are the ones offered by the fonts that come
with jdk1.2. They are listed in jdk1.2/jre/lib/fonts/fonts.dir.
When Java starts up it looks for them but doesn't find them from the
X server because they aren't in any of XFree86's default font
directories.
By adding entries to fonts/75dpi/fonts.alias it defines the names (so
that the jdk can find them from the X server) and it maps them to
appropriate fonts from the 75dpi set.
Most of the entries map to themselves... I don't why this should be
necessary but the jdk gave error message otherwise. Other entries
map to other fonts (lucidasans -> lucida). There is no italic
lucidatypewriter, so I mapped that to bold for now...
4. Refresh the X server font path
xset fp rehash
5. Finally, rename the jdk fonts directory
mv jdk1.2/jre/lib/fonts jdk1.2/jre/lib/fonts.old
This stops the jdk from using it's own anyway and forces it to go for
our mappings.
That's it. Now your java 2 apps should look more sensible...
... until the next release :)
Mark
Mark Dobie [EMAIL PROTECTED] University of Southampton
http://www.ecs.soton.ac.uk/~mrd/ <------ Queen discographies under here
Nothing cures insomnia like time to get up.
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]