"John N. Alegre" wrote:
>
> Jeff,
>
> My suggestion is a real short HOWTO posted to the list. I, for one would just
> love to see what you did and I feel that once it was all in front of me once I
> could digest it and handle the issue in the future. I feel that most people on
> the list are of the same mind.
>
> Please post how you did it and I will tuck it away for the next round of
> tweaking.
This is what I did. I've been busy and haven't been able to automate it
yet, and there are some issues with automation -- like how to pick
replacement the font out of the output of xlsfonts (largest common
substring? font database? just random?)
But here's what I did by hand on my system:
Run my java app, noting which fonts it complained about...
Run xlsfonts. This tells you which fonts the server *can* display.
For each font A not found from java app, pick a font B in the output of
xlsfonts.
Massage font B so that it looks like the fonts to generalize the
metrics, as in font.properties. For instance, I would change
-adobe-courier-bold-r-normal--0-0-0-0-m-0-iso8859-1
to
-adobe-courier-bold-r-normal--*-%d-*-*-m-*-iso8859-1
You're going to be running sed, so you want to escape the special
characters,
so now font B becomes:
-adobe-courier-bold-r-normal--\*-\%d-\*-\*-m-\*-iso8859-1
Now just enter the following:
cat font.properties | sed -e 's/<fontA>/<fontB>/' -e ....
> font.properties.NEW
Where another s/<oldfont>/<newfont>/ replacement scheme is specified
after the second -e, and another, and another...
Then just backup the original font.properties file and replace it with
the NEW one.
--Jeff
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]